Add nginx permission fixes to Dockerfile

This commit is contained in:
Kristóf Tóth 2018-03-14 08:57:05 +01:00
parent fa115a67c0
commit 51234c750c

View File

@ -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}