Docker - compilation des messages traduits pour l'application
This commit is contained in:
parent
99ed5d574c
commit
84e1baa64b
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.mo
|
@ -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 \
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user