From c68bef9bea88431e08e43eb39d1c0451f0fa971c Mon Sep 17 00:00:00 2001 From: Andrei Condurachi Date: Mon, 23 Nov 2020 21:51:40 +0200 Subject: [PATCH] Apache config update --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 601ac25..cb34ca9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN apk update && \ # Install packages RUN apk add --no-cache \ + bash \ # Init related tini \ openrc \ @@ -131,8 +132,8 @@ RUN (crontab -l; echo "") | crontab - # Provide container inside image for data persistence VOLUME ["/var/www"] -# Allow apache user login -RUN sed -i "s/apache(.*)\/sbin\/nologin/apache\\1\/bin\/ash/g" /etc/passwd +# Change shell for apache user so that it can login +RUN usermod -s bash apache # vhost config COPY vhost.conf /etc/apache2/conf.d/vhost.conf