Feature: Replace duplicated static files with symlinks (#11418)

This commit is contained in:
Trenton H
2025-11-21 12:07:57 -08:00
committed by GitHub
parent c5e80a7e4f
commit a96db50b0a
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", \