From c63b2f63a9dbd554966768945db3e9176b72db7a Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Sat, 2 Jan 2021 11:42:31 +0100 Subject: [PATCH] run apache as www-data for more security --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a737071..8c97914 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,4 +32,8 @@ ENV PHP_EXTENSION_APCU=0 \ # |-------------------------------------------------------------------------- # | Add php files of website # |-------------------------------------------------------------------------- -COPY ./public /var/www/html \ No newline at end of file +COPY ./public /var/www/html + +# Change back Apache user and group to www-data +ENV APACHE_RUN_USER=www-data \ + APACHE_RUN_GROUP=www-data \ No newline at end of file -- GitLab