From 3b2cf2accde505a3d369dd1fc911a41f40b34281 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 23 Aug 2021 10:02:41 +0200 Subject: [PATCH] chowend some dirs for deploy user --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b131f5c..ee046ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,5 +24,8 @@ RUN sed -i.bak -r 's/(User|Group) apache/\1 deploy/' /etc/apache2/httpd.conf COPY httpd-foreground /usr/local/bin/ RUN chown deploy:deploy /usr/local/bin/httpd-foreground +# setup the right permissions for deploy user +RUN chown -R deploy:deploy /var/www/ + USER deploy CMD ["httpd-foreground"] \ No newline at end of file