Merge pull request #2787 from modoboa/feature/compile_message_dev

Add gettext alpine package for compiling translations + force compili…
This commit is contained in:
Antoine Nguyen
2023-02-16 17:47:39 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -13,7 +13,12 @@ services:
PYTHONPATH: ".."
DB: "SQLITE"
DEBUG: "True"
command: sh -c "cd test_project && python3 manage.py migrate && python3 manage.py load_initial_data && python3 manage.py runserver 0:8000"
command: >
sh -c "cd test_project
python3 manage.py migrate
python3 manage.py load_initial_data
django-admin compilemessages
python3 manage.py runserver 0:8000"
volumes:
- .:/code
+1 -1
View File
@@ -7,7 +7,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
FROM base as build
RUN apk add --update openssl librrd python3-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev \
libressl-dev jpeg-dev rrdtool-dev file make \
libressl-dev jpeg-dev rrdtool-dev file make gettext \
&& rm -rf /var/cache/apk/*
RUN python3 -m venv $VIRTUAL_ENV
WORKDIR /tmp