@ -28,6 +28,7 @@ RUN chmod u+x /usr/local/bin/httpd-foreground
# setup the right permissions for deploy user
RUN chown -R deploy:deploy /var/www/
RUN chown -R deploy:deploy /run/apache2/
RUN chown -R deploy:deploy /var/log/apache2/
USER deploy
@ -2,6 +2,6 @@
set -e
# Apache gets grumpy about PID files pre-existing
rm -f /usr/local/apache2/logs/httpd.pid
rm -f /run/apache2/httpd.pid
exec httpd -DFOREGROUND "$@"