mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 10:51:21 +00:00
Reorder layers in Dockerfile
This commit is contained in:
parent
c88c0aae19
commit
6436953eea
10
Dockerfile
10
Dockerfile
@ -24,13 +24,9 @@ RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/p
|
||||
|
||||
ENV TFW_WEB_PORT=4242
|
||||
EXPOSE ${TFW_WEB_PORT}
|
||||
ENV TFW_APP_DIR="/srv/app"
|
||||
COPY src/app ${TFW_APP_DIR}
|
||||
|
||||
ENV TFW_LOGIN_APP_DIR="/tmp/source_code_server"
|
||||
ENV TFW_LOGIN_APP_PORT=6666
|
||||
ENV TFW_EVENT_HANDLERS_DIR="/opt/event_handlers"
|
||||
COPY src/event_handlers ${TFW_EVENT_HANDLERS_DIR}
|
||||
|
||||
# Copy config
|
||||
ENV TFW_LIB_DIR="/usr/local/lib/"
|
||||
@ -41,5 +37,11 @@ ENV TFW_SUPERVISORD_CONF="/etc/supervisor/supervisord.conf"
|
||||
ENV TFW_SUPERVISOR_HTTP_PORT=9001
|
||||
COPY supervisord.conf ${TFW_SUPERVISORD_CONF}
|
||||
|
||||
ENV TFW_APP_DIR="/srv/app"
|
||||
COPY src/app ${TFW_APP_DIR}
|
||||
|
||||
ENV TFW_EVENT_HANDLERS_DIR="/opt/event_handlers"
|
||||
COPY src/event_handlers ${TFW_EVENT_HANDLERS_DIR}
|
||||
|
||||
|
||||
CMD . "$HOME/.pyenvrc" && exec supervisord --nodaemon
|
||||
|
Loading…
Reference in New Issue
Block a user