mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-20 14:22:15 -04:00
Add gunicorn to docker setup
This commit is contained in:
+2
-1
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user