From 2a1b25dc69e687854cc13224e00bbe5d3310b5ef Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 31 Aug 2021 12:09:47 +0200 Subject: [PATCH] bugfixing to run command as user deploy --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index da07363..87fc947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,4 +63,13 @@ RUN pip install git+https://git.cpi.imtek.uni-freiburg.de/CPI/elab-users.git WORKDIR /data # Start httpd as root, but will switch to deploy user thanks to env variable -CMD ["sudo", "--preserve-env", "httpd-foreground"] +CMD [ + "sudo", + "APACHE_PID_FILE=/var/run/apache2/apache2.pid" , + "APACHE_LOCK_DIR=/var/lock/apache2", + "APACHE_LOG_DIR=/var/log/apache2", + "APACHE_RUN_DIR=/var/run/apache2", + "APACHE_RUN_USER=deploy", + "APACHE_RUN_GROUP=deploy", + "httpd-foreground" + ]