From 0e9316e2fdac0be502416eea5e74f55ecf05ff42 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Fri, 2 Jun 2023 14:03:34 +0100 Subject: [PATCH] Use simplified settings & set env variables for compiling translations --- .../compose/production/django/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 4b243b675..0fd8c6730 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -121,6 +121,8 @@ RUN chown django:django ${APP_HOME} USER django -RUN python manage.py compilemessages +RUN DATABASE_URL="" \ + DJANGO_SETTINGS_MODULE="config.settings.test" \ + python manage.py compilemessages ENTRYPOINT ["/entrypoint"]