From 4c17cd7572ec302e1004ff6dda9d3a8b698b4fd6 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 6 Jan 2023 14:06:16 -0500 Subject: [PATCH] Compile locales before installing package --- Dockerfile | 6 +++--- docker/Dockerfile.cuda | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e278593..fd2bf99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,9 @@ RUN python -mvenv venv && ./venv/bin/pip install --upgrade pip COPY . . # Install package from source code, compile translations -RUN ./venv/bin/pip install . \ - && ./venv/bin/pip cache purge \ - && ./venv/bin/python compile_locales.py +RUN ./venv/bin/python compile_locales.py \ + && ./venv/bin/pip install . \ + && ./venv/bin/pip cache purge FROM python:3.8.14-slim-bullseye diff --git a/docker/Dockerfile.cuda b/docker/Dockerfile.cuda index dd0cb9a..1b26707 100644 --- a/docker/Dockerfile.cuda +++ b/docker/Dockerfile.cuda @@ -34,9 +34,9 @@ RUN if [ "$with_models" = "true" ]; then \ fi # Install package from source code -RUN pip3 install . \ - && pip3 cache purge \ - && python3 compile_locales.py +RUN python3 compile_locales.py \ + && pip3 install . \ + && pip3 cache purge # Depending on your cuda install you may need to uncomment this line to allow the container to access the cuda libraries # See: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions