mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
Compile locales before installing package
This commit is contained in:
parent
ca72e3ec3e
commit
4c17cd7572
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue