mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 08:31:22 +00:00
Add chmod to wordir in Dockerfile
This commit is contained in:
parent
7720c63bc8
commit
545b972296
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user