From 398ecc07f63a56d6051ed818d9b771ecdb65c6d9 Mon Sep 17 00:00:00 2001 From: Hugo Bollon Date: Tue, 24 Sep 2024 14:01:53 +0200 Subject: [PATCH] build: run compilemessages in the Dockerfile --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c14f0b5..8ac4e2bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,9 @@ RUN apt update && apt install -y libgdal-dev libffi-dev gettext && \ COPY . /app/geoshop_back/ # Copy default settings to settings only if there is no such file -RUN mv -vn /app/geoshop_back/default_settings.py /app/geoshop_back/settings.py \ No newline at end of file +RUN mv -vn /app/geoshop_back/default_settings.py /app/geoshop_back/settings.py + +# Compile locales +RUN mv .env.sample .env +RUN python3 manage.py compilemessages --locale=fr +RUN rm -f .env