mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 14:04:52 +03:00
Re-phrase Django Dockerfile requirements comments
This commit is contained in:
parent
ba43d66793
commit
d9a5bc5bff
|
@ -15,7 +15,7 @@ RUN apk update \
|
||||||
# https://docs.djangoproject.com/en/2.0/ref/django-admin/#dbshell
|
# https://docs.djangoproject.com/en/2.0/ref/django-admin/#dbshell
|
||||||
&& apk add postgresql-client
|
&& apk add postgresql-client
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements are installed here to ensure they will be cached.
|
||||||
COPY ./requirements /requirements
|
COPY ./requirements /requirements
|
||||||
RUN pip install -r /requirements/local.txt
|
RUN pip install -r /requirements/local.txt
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ RUN apk update \
|
||||||
RUN addgroup -S django \
|
RUN addgroup -S django \
|
||||||
&& adduser -S -G django django
|
&& adduser -S -G django django
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements are installed here to ensure they will be cached.
|
||||||
COPY ./requirements /requirements
|
COPY ./requirements /requirements
|
||||||
RUN pip install --no-cache-dir -r /requirements/production.txt \
|
RUN pip install --no-cache-dir -r /requirements/production.txt \
|
||||||
&& rm -rf /requirements
|
&& rm -rf /requirements
|
||||||
|
|
Loading…
Reference in New Issue
Block a user