diff --git a/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile index 4b3db4278..90e3b693f 100644 --- a/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/local/django/Dockerfile @@ -15,7 +15,7 @@ RUN apk update \ # https://docs.djangoproject.com/en/2.0/ref/django-admin/#dbshell && 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 RUN pip install -r /requirements/local.txt diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index b3ce4c8c2..e8d2e0fc2 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -14,7 +14,7 @@ RUN apk update \ RUN addgroup -S 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 RUN pip install --no-cache-dir -r /requirements/production.txt \ && rm -rf /requirements