Unify Docker container config file locations to project root

This commit is contained in:
Kristóf Tóth 2018-01-31 16:15:19 +01:00
parent 0d41b4c8e9
commit 4c50f07be9
3 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ ENV TFW_LIB_DIR="/usr/local/lib/"
ENV TFW_SUPERVISORD_CONF="/etc/supervisor/supervisord.conf"
ENV PYTHONPATH=${TFW_LIB_DIR}
COPY src/nginx /etc/nginx
COPY nginx /etc/nginx
RUN chown -R ${AVATAO_USER}: /var/log/nginx /var/lib/nginx && \
# nginx runs as a regular user, and can't write to /run
sed -i 's#pid /run/nginx.pid;#pid /tmp/nginx.pid;#g' /etc/nginx/nginx.conf && \
@ -70,7 +70,7 @@ RUN chown -R ${AVATAO_USER}: /var/log/nginx /var/lib/nginx && \
USER ${AVATAO_USER}
WORKDIR /home/${AVATAO_USER}
COPY lib ${TFW_LIB_DIR}
COPY supervisord.conf ${TFW_SUPERVISORD_CONF}
COPY supervisor/supervisord.conf ${TFW_SUPERVISORD_CONF}
COPY src/app ${TFW_APP_DIR}
COPY src/event_handlers ${TFW_EVENT_HANDLERS_DIR}