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 WORKDIR /app

View file

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