From 93bf0af400342446a497ad72b29ced740bcb65f8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 25 Mar 2023 20:34:35 +0100 Subject: [PATCH] Compile messages during docker build --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2953f3e..bbaeab2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,8 @@ RUN useradd -M -d /app -u 1000 -g 1000 -s /bin/bash django RUN apt-get update -y \ && apt-get install -y --no-install-recommends \ libxml2 \ - media-types + media-types \ + gettext # Fetch project requirements ############################################## @@ -52,6 +53,7 @@ ENV DB_BASE_DIR "/app/db" RUN python -m pip install --no-cache-dir -r requirements.txt WORKDIR /app/src RUN python manage.py collectstatic --noinput --clear +RUN python ./src/manage.py compilemessages -l fr -l en EXPOSE 8000