diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cd1f2c9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +*.mo diff --git a/Dockerfile b/Dockerfile index 31e74a9..1df5e34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN set -ex \ python3-dev \ ' \ && apk --no-cache --update add \ + gettext \ mailcap \ python3 \ $buildDeps \ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 073a4aa..be13ae9 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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