diff --git a/{{cookiecutter.project_slug}}/compose/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/django/Dockerfile index 7b2e51f9..781f9b8d 100644 --- a/{{cookiecutter.project_slug}}/compose/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/django/Dockerfile @@ -8,10 +8,6 @@ RUN pip install -r /requirements/production.txt \ && groupadd -r 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/entrypoint.sh /entrypoint.sh RUN sed -i 's/\r//' /entrypoint.sh \ @@ -21,6 +17,11 @@ RUN sed -i 's/\r//' /entrypoint.sh \ && chmod +x /gunicorn.sh \ && chown django /gunicorn.sh +COPY . /app + +RUN chown -R django /app +USER django + WORKDIR /app ENTRYPOINT ["/entrypoint.sh"]