Docker - compilation des messages traduits pour l'application

This commit is contained in:
Olivier DOSSMANN 2017-08-25 13:14:01 +01:00
parent 99ed5d574c
commit 84e1baa64b
3 changed files with 4 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
*.mo

View File

@ -18,6 +18,7 @@ RUN set -ex \
python3-dev \ python3-dev \
' \ ' \
&& apk --no-cache --update add \ && apk --no-cache --update add \
gettext \
mailcap \ mailcap \
python3 \ python3 \
$buildDeps \ $buildDeps \

View File

@ -11,6 +11,8 @@ elif [ "$1" = 'prod' ]; then
export DJANGO_ENV='production' export DJANGO_ENV='production'
# Collect static files # Collect static files
python3 manage.py collectstatic --noinput --clear -v 0 python3 manage.py collectstatic --noinput --clear -v 0
# translations generation
python3 manage.py compilemessages
exec uwsgi --ini uwsgi.ini --pythonpath "$APPS_DIR" --static-map=/static/="$STATIC_ROOT" exec uwsgi --ini uwsgi.ini --pythonpath "$APPS_DIR" --static-map=/static/="$STATIC_ROOT"
fi fi