Skip to content

Commit fa3beca

Browse files
authored
💚(docker) ignore .venv with compilemessages command
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.
1 parent d340c8f commit fa3beca

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ FROM python:3.13.13-alpine AS base
66
# Upgrade system packages to install security updates
77
RUN apk update && apk upgrade --no-cache
88

9-
10-
# Remove pip. We don't use it.
11-
RUN python -m pip uninstall -y pip
9+
# We must do that to avoid having an outdated pip version with security issues
10+
RUN python -m pip install --upgrade pip
1211

1312
# ---- Back-end builder image ----
1413
FROM base AS back-builder
@@ -114,7 +113,7 @@ RUN mkdir /cert && \
114113

115114
# Generate compiled translation messages
116115
RUN DJANGO_CONFIGURATION=Build \
117-
python manage.py compilemessages
116+
python manage.py compilemessages --ignore=".venv/**/*"
118117

119118

120119
# We wrap commands run in this container by the following entrypoint that

0 commit comments

Comments
 (0)