From fa3beca494fee2f0e16a6b9aa1aa7e7dedc52823 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 7 May 2026 16:21:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(docker)=20ignore=20.venv=20with=20?= =?UTF-8?q?compilemessages=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compilemessages management command was also compiling messages for all the libraries present in the .venv folder. We have to ignore it, on arm64 this management command is taking too much time otherwise. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d933cb4e..23a47e49b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,8 @@ FROM python:3.13.13-alpine AS base # Upgrade system packages to install security updates RUN apk update && apk upgrade --no-cache - -# Remove pip. We don't use it. -RUN python -m pip uninstall -y pip +# We must do that to avoid having an outdated pip version with security issues +RUN python -m pip install --upgrade pip # ---- Back-end builder image ---- FROM base AS back-builder @@ -114,7 +113,7 @@ RUN mkdir /cert && \ # Generate compiled translation messages RUN DJANGO_CONFIGURATION=Build \ - python manage.py compilemessages + python manage.py compilemessages --ignore=".venv/**/*" # We wrap commands run in this container by the following entrypoint that