From 62d53e3f09f95ec75288e4a2ae61cf93b864aa08 Mon Sep 17 00:00:00 2001 From: dingedi Date: Thu, 12 Jan 2023 14:42:09 +0100 Subject: [PATCH] fix docker & upgrade base to python:3.10.9-slim-bullseye --- .docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 5c073c7..4c3f7f0 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -19,10 +19,10 @@ RUN ./venv/bin/pip install Babel==2.11.0 && ./venv/bin/python compile_locales.py && ./venv/bin/pip install . \ && ./venv/bin/pip cache purge -FROM python:3.8.14-slim-bullseye +FROM python:3.10.9-slim-bullseye ARG with_models=false -ARG models= +ARG models="" RUN addgroup --system --gid 1032 libretranslate && adduser --system --uid 1032 libretranslate && mkdir -p /home/libretranslate/.local && chown -R libretranslate:libretranslate /home/libretranslate/.local USER libretranslate @@ -33,9 +33,9 @@ WORKDIR /app RUN if [ "$with_models" = "true" ]; then \ # initialize the language models if [ ! -z "$models" ]; then \ - ./venv/bin/python install_models.py --load_only_lang_codes "$models"; \ + ./venv/bin/python scripts/install_models.py --load_only_lang_codes "$models"; \ else \ - ./venv/bin/python install_models.py; \ + ./venv/bin/python scripts/install_models.py; \ fi \ fi