From 5e46dc3235a54bb16a613ed8d62bd18037143b8d Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 23 Aug 2021 09:52:43 +0200 Subject: [PATCH] running httpd-foreground as deploy user --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) 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