Merge pull request #644 from silentoplayz/patch-1

Update Dockerfile to add NumPy <2
This commit is contained in:
Piero Toffanin 2024-07-04 23:07:14 -04:00 committed by GitHub
commit 085234bf9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -16,6 +16,7 @@ COPY . .
# Install package from source code, compile translations # Install package from source code, compile translations
RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \ 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.0.1 --extra-index-url https://download.pytorch.org/whl/cpu \
&& ./venv/bin/pip install "numpy<2" \
&& ./venv/bin/pip install . \ && ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge && ./venv/bin/pip cache purge

View file

@ -16,6 +16,7 @@ COPY . .
# Install package from source code, compile translations # Install package from source code, compile translations
RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \ 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.0.1 --extra-index-url https://download.pytorch.org/whl/cpu \
&& ./venv/bin/pip install "numpy<2" \
&& ./venv/bin/pip install . \ && ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge && ./venv/bin/pip cache purge

View file

@ -34,6 +34,7 @@ RUN if [ "$with_models" = "true" ]; then \
# Install package from source code # Install package from source code
RUN pip3 install Babel==2.12.1 && python3 scripts/compile_locales.py \ RUN pip3 install Babel==2.12.1 && python3 scripts/compile_locales.py \
&& ./venv/bin/pip install "numpy<2" \
&& pip3 install . \ && pip3 install . \
&& pip3 cache purge && pip3 cache purge