Experiments with a script to de-duplicate the static files, in particular the pdf.js one

This commit is contained in:
Trenton H
2025-11-20 08:23:23 -08:00
parent bc622d67fc
commit 8e76753dd9
2 changed files with 169 additions and 1 deletions

View File

@@ -254,7 +254,8 @@ RUN set -eux \
&& chown --from root:root --changes --recursive paperless:paperless /usr/src/paperless \
&& echo "Collecting static files" \
&& s6-setuidgid paperless python3 manage.py collectstatic --clear --no-input --link \
&& s6-setuidgid paperless python3 manage.py compilemessages
&& s6-setuidgid paperless python3 manage.py compilemessages \
&& /usr/local/bin/deduplicate.py --verbose /usr/src/paperless/static/
VOLUME ["/usr/src/paperless/data", \
"/usr/src/paperless/media", \