From 545b972296e366bee3549bce0a8de3ec5a43e4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 9 Feb 2018 17:25:38 +0100 Subject: [PATCH] Add chmod to wordir in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3cce3dd..195a4af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,7 +65,7 @@ ENV PYTHONPATH=${TFW_LIB_DIR} COPY nginx/nginx.conf ${TFW_NGINX_CONF} COPY nginx/components/ ${TFW_NGINX_COMPONENTS} -RUN chown -R ${AVATAO_USER}: /var/log/nginx /var/lib/nginx &&\ +RUN chown -R ${AVATAO_USER} /var/log/nginx /var/lib/nginx &&\ sed -i 's#pid /run/nginx.pid;#pid /tmp/nginx.pid;#g' /etc/nginx/nginx.conf &&\ for f in "${TFW_NGINX_CONF}" ${TFW_NGINX_COMPONENTS}/*.conf; do \ envsubst "$(printenv | cut -d= -f1 | grep TFW_ | sed -e 's/^/$/g')" < $f > $f ;\ @@ -83,7 +83,7 @@ COPY src/event_handlers/source_code_server/server.py ${TFW_LOGIN_APP_DIR}/ COPY src/event_handlers/source_code_server/users.db ${TFW_LOGIN_APP_DIR}/ COPY src/event_handlers/source_code_server/login_component.py ${TFW_WEBIDE_WD}/ -RUN chown -R ${AVATAO_USER} ${TFW_WEBIDE_WD} +RUN chown -R ${AVATAO_USER} ${TFW_WEBIDE_WD} && chmod -R 755 ${TFW_WEBIDE_WD} USER ${AVATAO_USER} WORKDIR /home/${AVATAO_USER}