From 4107323a766d32ea2d5226d7292a246214fe53ed Mon Sep 17 00:00:00 2001 From: Florian Gabsteiger Date: Wed, 24 Jul 2019 13:34:05 -0900 Subject: [PATCH] Enable static file collection in docker image --- scripts/docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) 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() {