1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-15 00:57:18 +00:00
test-tutorial-framework/solvable/Dockerfile
2018-04-20 17:33:59 +02:00

20 lines
753 B
Docker

FROM eu.gcr.io/avatao-challengestore/tutorial-framework
ENV TFW_SERVER_DIR="/srv/.tfw" \
TFW_LOGIN_APP_DIR="/tmp/source_code_server" \
TFW_IDE_WD="/home/${AVATAO_USER}/workdir" \
TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
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_IDE_WD}/
RUN chown -R ${AVATAO_USER} ${TFW_IDE_WD} &&\
chmod -R 755 ${TFW_IDE_WD} &&\
chown -R root ${TFW_SERVER_DIR} &&\
chmod -R 700 ${TFW_SERVER_DIR}
VOLUME ["/home/${AVATAO_USER}"]
WORKDIR /home/${AVATAO_USER}