A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Feature: pre-compress static files on ARM64 (#11721)
Trenton Hba42f0eb4f7f
diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.ymlindex c91b2b05c..5793ecfa1 100644--- a/.github/workflows/ci-docker.yml+++ b/.github/workflows/ci-docker.yml@@ -216,9 +216,9 @@ jobs:GHCR_REPO: ${{ env.REGISTRY }}/${{ needs.build-arch.outputs.repository }}run: |for tag in ${TAGS}; do- dockerhub_tag="${tag/${GHCR_REPO}/paperlessngx/paperless-ngx}"+ dockerhub_tag="${tag/${GHCR_REPO}/docker.io/paperlessngx/paperless-ngx}"echo "Copying ${tag} to ${dockerhub_tag}"- docker buildx imagetools create --tag "${dockerhub_tag}" "${tag}"+ skopeo copy --all "docker://${tag}" "docker://${dockerhub_tag}"done- name: Copy to Quay.ioif: needs.build-arch.outputs.push-external == 'true'@@ -229,5 +229,5 @@ jobs:for tag in ${TAGS}; doquay_tag="${tag/${GHCR_REPO}/quay.io/paperlessngx/paperless-ngx}"echo "Copying ${tag} to ${quay_tag}"- docker buildx imagetools create --tag "${quay_tag}" "${tag}"+ skopeo copy --all "docker://${tag}" "docker://${quay_tag}"donediff --git a/src/paperless/settings.py b/src/paperless/settings.pyindex 7ffc1b3f0..ab2aef4ee 100644--- a/src/paperless/settings.py+++ b/src/paperless/settings.py@@ -8,7 +8,6 @@ import osimport tempfilefrom os import PathLikefrom pathlib import Path-from platform import machinefrom typing import Finalfrom urllib.parse import urlparse@@ -423,14 +422,9 @@ ASGI_APPLICATION = "paperless.asgi.application"STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", BASE_URL + "static/")WHITENOISE_STATIC_PREFIX = "/static/"-if machine().lower() == "aarch64": # pragma: no cover- _static_backend = "django.contrib.staticfiles.storage.StaticFilesStorage"-else:- _static_backend = "whitenoise.storage.CompressedStaticFilesStorage"-STORAGES = {"staticfiles": {- "BACKEND": _static_backend,+ "BACKEND": "whitenoise.storage.CompressedStaticFilesStorage",},"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},}