From 482169b13309d21ac03223cd34ab2ff0d2e64cc8 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 31 Aug 2021 12:11:09 +0200 Subject: [PATCH] bugfixing to run command as user deploy --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87fc947..dbadb22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,13 +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", - "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" +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" \ ]