diff --git a/Dockerfile b/Dockerfile index 1e2bf86..f385b45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,19 +10,6 @@ RUN apt-get update && \ libreadline-dev \ libsqlite3-dev -ENV TFW_APP_DIR="/srv/app" -COPY src/app ${TFW_APP_DIR} - -ENV TFW_COMPONENTS_DIR="/opt/components" -COPY src/components ${TFW_COMPONENTS_DIR} - -ENV TFW_CONFIG_DIR="/usr/local/lib/" -ENV PYTHONPATH=${TFW_CONFIG_DIR} -COPY lib $TFW_CONFIG_DIR - -ENV TFW_SUPERVISORD_CONF="/etc/supervisor/supervisord.conf" -COPY supervisord.conf ${TFW_SUPERVISORD_CONF} - USER user COPY .pyenvrc /home/user/.pyenvrc @@ -37,6 +24,20 @@ RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/p ENV PYENV_ROOT="$HOME/.pyenv" ENV PATH="$PYENV_ROOT/bin:$PATH" +ENV TFW_APP_DIR="/srv/app" +COPY src/app ${TFW_APP_DIR} + +ENV TFW_COMPONENTS_DIR="/opt/components" +COPY src/components ${TFW_COMPONENTS_DIR} + +# Copy config +ENV TFW_CONFIG_DIR="/usr/local/lib/" +ENV PYTHONPATH=${TFW_CONFIG_DIR} +COPY lib $TFW_CONFIG_DIR + +ENV TFW_SUPERVISORD_CONF="/etc/supervisor/supervisord.conf" +COPY supervisord.conf ${TFW_SUPERVISORD_CONF} + ENV WEB_PORT=4242 EXPOSE 4242