Skip to content

Commit

Permalink
Merge pull request #2787 from modoboa/feature/compile_message_dev
Browse files Browse the repository at this point in the history
Add gettext alpine package for compiling translations + force compili…
  • Loading branch information
tonioo authored Feb 16, 2023
2 parents 881baea + 65e22d9 commit 63af0b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63af0b6

Please sign in to comment.