Compare commits

...

3 commits

Author SHA1 Message Date
Piero Toffanin
932fe54984
Merge pull request #785 from jpralves/main
Some checks are pending
Build and Publish Docker Image / main (push) Waiting to run
Update Dockerfile #737
2025-04-16 13:28:51 -04:00
João Alves
5c72835abb
Merge pull request #1 from jpralves/jpralves-patch-1
Update Dockerfile #737
2025-04-16 16:10:11 +01:00
João Alves
1d6338b199
Update Dockerfile #737
Fixes LibreTranslate/LibreTranslate#737 problem related with pytorch version declared in pyproject.toml dependency and venv pip install.
2025-04-16 16:09:32 +01:00

View file

@ -15,7 +15,7 @@ COPY . .
# Install package from source code, compile translations
RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \
&& ./venv/bin/pip install torch==2.0.1 --extra-index-url https://download.pytorch.org/whl/cpu \
&& ./venv/bin/pip install torch==2.2.0 --extra-index-url https://download.pytorch.org/whl/cpu \
&& ./venv/bin/pip install "numpy<2" \
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge