mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:11:32 +00:00
Improve Dockerfile
This commit is contained in:
parent
5e390e1449
commit
38963e7b81
@ -7,9 +7,9 @@ RUN pip3 install Flask==1.0 \
|
||||
git+https://github.com/avatao-content/tfwconnector.git#subdirectory=python3
|
||||
|
||||
# Define variables to use later
|
||||
ENV TFW_EHMAIN_DIR="/srv/.tfw_builtin_ehs" \
|
||||
TFW_WEBSERVICE_DIR="/srv/webservice" \
|
||||
TFW_IDE_WD="/home/${AVATAO_USER}/workdir" \
|
||||
ENV TFW_EHMAIN_DIR="${TFW_DIR}/builtin_event_handlers" \
|
||||
TFW_WEBSERVICE_DIR="/srv/webservice" \
|
||||
TFW_IDE_WD="/home/${AVATAO_USER}/workdir" \
|
||||
TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
|
||||
|
||||
# Copy TFW related stuff to a dedicated directory
|
||||
@ -26,7 +26,8 @@ RUN mkdir -p ${TFW_IDE_WD} &&\
|
||||
chmod -R 755 "${TFW_IDE_WD}" "${TFW_WEBSERVICE_DIR}"
|
||||
|
||||
# Hide TFW related code from user
|
||||
RUN chown -R root:root ${TFW_SERVER_DIR} && chmod -R 700 ${TFW_SERVER_DIR}
|
||||
RUN chown -R root:root ${TFW_SERVER_DIR} ${TFW_DIR} &&\
|
||||
chmod -R 700 ${TFW_SERVER_DIR} ${TFW_DIR}
|
||||
|
||||
# Make AVATAO_USER's home writeable and set it as WORKDIR
|
||||
# Make webservice directory writable
|
||||
|
Loading…
Reference in New Issue
Block a user