diff --git a/Dockerfile b/Dockerfile index beacd65..b131f5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,7 @@ RUN sed -i.bak -r 's/(User|Group) apache/\1 deploy/' /etc/apache2/httpd.conf # copy the script to run httpd in foreground COPY httpd-foreground /usr/local/bin/ +RUN chown deploy:deploy /usr/local/bin/httpd-foreground + +USER deploy CMD ["httpd-foreground"] \ No newline at end of file