1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

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 . . COPY . .
# Install package from source code, compile translations # 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 install . \
&& ./venv/bin/pip cache purge && ./venv/bin/pip cache purge

View File

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