mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-24 10:06:43 +02:00
Compile locales before installing package
This commit is contained in:
parent
ca72e3ec3e
commit
4c17cd7572
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user