Reorder layers in Dockerfile

This commit is contained in:
Bálint Bokros 2018-01-10 16:54:47 +01:00
parent c88c0aae19
commit 6436953eea

View File

@ -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