compile translations when building image (#189)

This commit is contained in:
se4598 2024-08-27 16:37:58 +02:00 committed by GitHub
parent 40601371f4
commit d6ba4a71d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,7 @@ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmp
# renovate: srcname=librsvg
gir1.2-rsvg-2.0=2.54.5+dfsg-1ubuntu2.1 \
libgirepository-1.0-1=1.76.1-1 \
gettext \
tzdata=2023d-0ubuntu0.23.04 \
ca-certificates=20230311ubuntu0.23.04.1 \
zstd=1.5.4+dfsg2-4
@ -93,7 +94,8 @@ ENV C3NAV_DEBUG="" \
USER c3nav
WORKDIR /app
RUN /app/env/bin/python manage.py collectstatic -l --no-input && \
RUN /app/env/bin/python manage.py compilemessages && \
/app/env/bin/python manage.py collectstatic -l --no-input && \
/app/env/bin/python manage.py compress && \
rm -r /data/*