We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
web
1 parent 7eb0b49 commit e43f62eCopy full SHA for e43f62e
{{ cookiecutter.name }}/Dockerfile
@@ -37,7 +37,7 @@ LABEL maintainer="{{ cookiecutter.email }}"
37
38
ENV DEBIAN_FRONTEND=noninteractive
39
ENV PYTHONUNBUFFERED=1
40
-ENV STATIC_ROOT=/var/lib/django-static
+ENV STATIC_ROOT=/code/static
41
# Define user ids to ensure consistent permissions, e.g., for mounted volumes
42
ENV UID=999 GID=999
43
@@ -55,11 +55,10 @@ ENV PATH="/code/.venv/bin:$PATH"
55
56
WORKDIR /code/src
57
58
+USER web
59
RUN python manage.py compilemessages
60
RUN python manage.py collectstatic --noinput
61
-USER web
62
-
63
# Also to mark that when CMD is used in shell form, it is a conscious decision
64
SHELL ["/bin/bash", "-c"]
65
0 commit comments