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 . . COPY . .
# Install package from source code, compile translations # Install package from source code, compile translations
RUN ./venv/bin/pip install . \ RUN ./venv/bin/python compile_locales.py \
&& ./venv/bin/pip cache purge \ && ./venv/bin/pip install . \
&& ./venv/bin/python compile_locales.py && ./venv/bin/pip cache purge
FROM python:3.8.14-slim-bullseye FROM python:3.8.14-slim-bullseye

View file

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