Install babel before running compile_locales.py

This commit is contained in:
Piero Toffanin 2023-01-06 14:09:43 -05:00
parent 4c17cd7572
commit fa8516516c
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ RUN python -mvenv venv && ./venv/bin/pip install --upgrade pip
COPY . .
# Install package from source code, compile translations
RUN ./venv/bin/python compile_locales.py \
RUN ./venv/bin/pip install Babel==2.11.0 && ./venv/bin/python compile_locales.py \
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge

View file

@ -34,7 +34,7 @@ RUN if [ "$with_models" = "true" ]; then \
fi
# Install package from source code
RUN python3 compile_locales.py \
RUN pip3 install Babel==2.11.0 && python3 compile_locales.py \
&& pip3 install . \
&& pip3 cache purge