From 6436953eeaad4863279ad487b6f164bcdf8b8f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Wed, 10 Jan 2018 16:54:47 +0100 Subject: [PATCH] Reorder layers in Dockerfile --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d9dc7e..0ee787c 100644 --- a/Dockerfile +++ b/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