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

Compile locales before installing package

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

View File

@ -15,9 +15,9 @@ RUN python -mvenv venv && ./venv/bin/pip install --upgrade pip
COPY . .
# Install package from source code, compile translations
RUN ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge \
&& ./venv/bin/python compile_locales.py
RUN ./venv/bin/python compile_locales.py \
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge
FROM python:3.8.14-slim-bullseye

View File

@ -34,9 +34,9 @@ RUN if [ "$with_models" = "true" ]; then \
fi
# Install package from source code
RUN pip3 install . \
&& pip3 cache purge \
&& python3 compile_locales.py
RUN python3 compile_locales.py \
&& pip3 install . \
&& pip3 cache purge
# Depending on your cuda install you may need to uncomment this line to allow the container to access the cuda libraries
# See: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions