From 7ad2e1fdae82e011fa823f5f42590bf6ce3638ee Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sun, 18 Jun 2023 13:03:36 +0100 Subject: [PATCH] Fix missing celery env variable when running compilemessages (#4403) --- .../compose/production/django/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 5a863ddc..a48cbc4a 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -122,6 +122,9 @@ RUN chown django:django ${APP_HOME} USER django RUN DATABASE_URL="" \ + {%- if cookiecutter.use_celery == "y" %} + CELERY_BROKER_URL="" \ + {%- endif %} DJANGO_SETTINGS_MODULE="config.settings.test" \ python manage.py compilemessages