Docker - compilation des messages traduits pour l'application

master
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 100644
View File

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

View File

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

View File

@ -11,6 +11,8 @@ elif [ "$1" = 'prod' ]; then
export DJANGO_ENV='production'
# Collect static files
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"
fi