diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 5cfcd4023..303d1b8de 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -55,10 +55,15 @@ migrations() { fi } +collectstatic() { + sudo -HEu paperless "/usr/src/paperless/src/manage.py" "collectstatic" "--clear" "--no-input" +} + initialize() { map_uidgid set_permissions migrations + collectstatic } install_languages() {