Re-phrase Django Dockerfile requirements comments

This commit is contained in:
Nikita P. Shupeyko 2018-03-27 18:15:24 +03:00
parent ba43d66793
commit d9a5bc5bff
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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