Compile messages during docker build

This commit is contained in:
Gabriel Augendre 2023-03-25 20:34:35 +01:00
parent 9d9a3f2865
commit 93bf0af400
1 changed files with 3 additions and 1 deletions

View File

@ -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