1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

move dockerfile in a .docker

This commit is contained in:
dingedi 2023-01-12 14:23:13 +01:00
parent 6e04c88308
commit 5ea18f88db
No known key found for this signature in database
GPG Key ID: EE23A12D271A3CED
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.8.14-slim-bullseye as builder
FROM python:3.10.9-slim-bullseye as builder
WORKDIR /app

View File

@ -2,7 +2,7 @@ FROM nvidia/cuda:11.2.2-devel-ubuntu20.04
ENV ARGOS_DEVICE_TYPE cuda
ARG with_models=true
ARG models=
ARG models=""
WORKDIR /app
@ -27,14 +27,14 @@ RUN if [ "$with_models" = "true" ]; then \
pip3 install -e .; \
# initialize the language models
if [ ! -z "$models" ]; then \
./install_models.py --load_only_lang_codes "$models"; \
./scripts/install_models.py --load_only_lang_codes "$models"; \
else \
./install_models.py; \
./scripts/install_models.py; \
fi \
fi
# Install package from source code
RUN pip3 install Babel==2.11.0 && python3 compile_locales.py \
RUN pip3 install Babel==2.11.0 && python3 scripts/compile_locales.py \
&& pip3 install . \
&& pip3 cache purge