From 51234c750c231e23a9d37a8913d0bd439da62a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 14 Mar 2018 08:57:05 +0100 Subject: [PATCH] Add nginx permission fixes to Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 72460b2..5b45389 100644 --- a/Dockerfile +++ b/Dockerfile @@ -101,7 +101,8 @@ COPY src/demo/source_code_server/server.py ${TFW_LOGIN_APP_DIR}/ COPY src/demo/source_code_server/users.db ${TFW_LOGIN_APP_DIR}/ COPY src/demo/source_code_server/login_component.py ${TFW_WEBIDE_WD}/ -RUN chown -R ${AVATAO_USER} ${TFW_WEBIDE_WD} && chmod -R 755 ${TFW_WEBIDE_WD} +RUN chown -R ${AVATAO_USER} ${TFW_WEBIDE_WD} /var/log/nginx /var/lib/nginx /etc/nginx &&\ + chmod -R 755 ${TFW_WEBIDE_WD} USER ${AVATAO_USER} WORKDIR /home/${AVATAO_USER}