Fix #1150
This commit is contained in:
Shupeyko Nikita 2017-04-29 16:59:05 +03:00 committed by GitHub
parent 095d7417b8
commit 9037fb57f3

View File

@ -8,10 +8,6 @@ RUN pip install -r /requirements/production.txt \
&& groupadd -r django \ && groupadd -r django \
&& useradd -r -g django django && useradd -r -g django django
COPY . /app
RUN chown -R django /app
USER django
COPY ./compose/django/gunicorn.sh /gunicorn.sh COPY ./compose/django/gunicorn.sh /gunicorn.sh
COPY ./compose/django/entrypoint.sh /entrypoint.sh COPY ./compose/django/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh \ RUN sed -i 's/\r//' /entrypoint.sh \
@ -21,6 +17,11 @@ RUN sed -i 's/\r//' /entrypoint.sh \
&& chmod +x /gunicorn.sh \ && chmod +x /gunicorn.sh \
&& chown django /gunicorn.sh && chown django /gunicorn.sh
COPY . /app
RUN chown -R django /app
USER django
WORKDIR /app WORKDIR /app
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]