Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Enable static file collection in docker image

Florian Gabsteiger4107323a766d
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() {