Skip to content

Commit

Permalink
build: run compilemessages in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Sep 24, 2024
1 parent 3a96ac6 commit 398ecc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 398ecc0

Please sign in to comment.