Add missing condition

This commit is contained in:
Bruno Alla 2022-12-06 11:50:25 +00:00
parent f59c342b8f
commit 796a9c9cad
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ WORKDIR ${APP_HOME}
COPY ./package.json ${APP_HOME}
RUN npm install && npm cache clean --force
COPY . ${APP_HOME}
{%- if cookiecutter.use_whitenoise == 'n' %}
{%- if cookiecutter.frontend_pipeline == 'Webpack' and cookiecutter.use_whitenoise == 'n' %}
{%- if cookiecutter.cloud_provider == 'AWS' %}
ARG DJANGO_AWS_STORAGE_BUCKET_NAME
ENV DJANGO_AWS_STORAGE_BUCKET_NAME=${DJANGO_AWS_STORAGE_BUCKET_NAME}

View File

@ -10,7 +10,7 @@ services:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
{%- if cookiecutter.use_whitenoise == 'n' %}
{%- if cookiecutter.frontend_pipeline == 'Webpack' and cookiecutter.use_whitenoise == 'n' %}
args:
# These variable can be defined in an .env file in the root of the repo
{%- if cookiecutter.cloud_provider == 'AWS' %}