1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-06-28 18:55:13 +00:00

Move TFW stuff to hidden location with proper permissions

This commit is contained in:
Kristóf Tóth
2018-04-19 17:33:12 +02:00
parent 709c61d130
commit d6ff80230f
4 changed files with 8 additions and 6 deletions

View File

@ -1,17 +1,19 @@
FROM eu.gcr.io/avatao-challengestore/tutorial-framework
ENV TFW_APP_DIR="/srv/app" \
ENV TFW_SERVER_DIR="/srv/.tfw" \
TFW_LOGIN_APP_DIR="/tmp/source_code_server" \
TFW_WEBIDE_WD="/home/${AVATAO_USER}/workdir" \
TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
COPY solvable/src ${TFW_APP_DIR}/
COPY solvable/src ${TFW_SERVER_DIR}/
COPY solvable/src/source_code_server/server.py ${TFW_LOGIN_APP_DIR}/
COPY solvable/src/source_code_server/users.db ${TFW_LOGIN_APP_DIR}/
COPY solvable/src/source_code_server/login_component.py ${TFW_WEBIDE_WD}/
RUN chown -R ${AVATAO_USER} ${TFW_WEBIDE_WD} &&\
chmod -R 755 ${TFW_WEBIDE_WD}
chmod -R 755 ${TFW_WEBIDE_WD} &&\
chown -R root ${TFW_SERVER_DIR} &&\
chmod -R 700 ${TFW_SERVER_DIR}
VOLUME ["/home/${AVATAO_USER}"]
WORKDIR /home/${AVATAO_USER}