Add gunicorn to docker setup

This commit is contained in:
Piero Toffanin
2025-12-04 00:22:41 -05:00
parent f7339b5dd3
commit cf01bbf76a
12 changed files with 64 additions and 981 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ COPY . .
RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \
&& ./venv/bin/pip install torch==$(grep -o -m1 'torch.*;' pyproject.toml|sed 's/[^0-9.]//g') --extra-index-url https://download.pytorch.org/whl/cpu \
&& ./venv/bin/pip install "numpy<2" \
&& ./venv/bin/pip install gunicorn==23.0.0 \
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge
@@ -43,4 +44,4 @@ RUN if [ "$with_models" = "true" ]; then \
fi
EXPOSE 5000
ENTRYPOINT [ "./venv/bin/libretranslate", "--host", "*" ]
ENTRYPOINT [ "./scripts/entrypoint.sh" ]