mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-15 03:37:17 +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
|
git+https://github.com/avatao-content/tfwconnector.git#subdirectory=python3
|
||||||
|
|
||||||
# Define variables to use later
|
# Define variables to use later
|
||||||
ENV TFW_EHMAIN_DIR="/srv/.tfw_builtin_ehs" \
|
ENV TFW_EHMAIN_DIR="${TFW_DIR}/builtin_event_handlers" \
|
||||||
TFW_WEBSERVICE_DIR="/srv/webservice" \
|
TFW_WEBSERVICE_DIR="/srv/webservice" \
|
||||||
TFW_IDE_WD="/home/${AVATAO_USER}/workdir" \
|
TFW_IDE_WD="/home/${AVATAO_USER}/workdir" \
|
||||||
TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
|
TFW_TERMINADO_WD="/home/${AVATAO_USER}/workdir"
|
||||||
|
|
||||||
# Copy TFW related stuff to a dedicated directory
|
# 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}"
|
chmod -R 755 "${TFW_IDE_WD}" "${TFW_WEBSERVICE_DIR}"
|
||||||
|
|
||||||
# Hide TFW related code from user
|
# 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 AVATAO_USER's home writeable and set it as WORKDIR
|
||||||
# Make webservice directory writable
|
# Make webservice directory writable
|
||||||
|
Loading…
Reference in New Issue
Block a user