From fa8516516ce276d6136c466350646d0968097884 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 6 Jan 2023 14:09:43 -0500 Subject: [PATCH] Install babel before running compile_locales.py --- Dockerfile | 2 +- docker/Dockerfile.cuda | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd2bf99..a9adb54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN python -mvenv venv && ./venv/bin/pip install --upgrade pip COPY . . # Install package from source code, compile translations -RUN ./venv/bin/python compile_locales.py \ +RUN ./venv/bin/pip install Babel==2.11.0 && ./venv/bin/python compile_locales.py \ && ./venv/bin/pip install . \ && ./venv/bin/pip cache purge diff --git a/docker/Dockerfile.cuda b/docker/Dockerfile.cuda index 1b26707..bd94cf0 100644 --- a/docker/Dockerfile.cuda +++ b/docker/Dockerfile.cuda @@ -34,7 +34,7 @@ RUN if [ "$with_models" = "true" ]; then \ fi # Install package from source code -RUN python3 compile_locales.py \ +RUN pip3 install Babel==2.11.0 && python3 compile_locales.py \ && pip3 install . \ && pip3 cache purge