1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-06-28 19:05:12 +00:00

Initial commit, first version of test TFW project

This commit is contained in:
Kristóf Tóth
2018-03-23 15:27:42 +01:00
commit 6d6262b220
13 changed files with 169 additions and 0 deletions

19
solvable/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM baseimage-tutorial-framework
ENV TFW_APP_DIR="/srv/app" \
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/demo ${TFW_APP_DIR}/
COPY solvable/src/demo/source_code_server/server.py ${TFW_LOGIN_APP_DIR}/
COPY solvable/src/demo/source_code_server/users.db ${TFW_LOGIN_APP_DIR}/
COPY solvable/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}
VOLUME ["/home/${AVATAO_USER}"]
USER ${AVATAO_USER}
WORKDIR /home/${AVATAO_USER}