A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Updates the Docker base image to Debian Bookworm (from Bullseye)
Trenton H26b438a888a6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex b6faad1d9..1f04d9ba8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -306,7 +306,7 @@ jobs:push: ${{ github.event_name != 'pull_request' }}tags: ${{ steps.docker-meta.outputs.tags }}labels: ${{ steps.docker-meta.outputs.labels }}- # Get cache layers from this branch, then dev, then main+ # Get cache layers from this branch, then dev# This allows new branches to get at least some cache benefits, generally from devcache-from: |type=registry,ref=ghcr.io/${{ steps.set-ghcr-repository.outputs.ghcr-repository }}/builder/cache/app:${{ github.ref_name }}diff --git a/Dockerfile b/Dockerfileindex ebe95facd..8833d8d43 100644--- a/Dockerfile+++ b/Dockerfile@@ -5,7 +5,7 @@# Purpose: Compiles the frontend# Notes:# - Does NPM stuff with Typescript and such-FROM --platform=$BUILDPLATFORM node:16-bullseye-slim AS compile-frontend+FROM --platform=$BUILDPLATFORM docker.io/node:16-bullseye-slim AS compile-frontendCOPY ./src-ui /src/src-ui@@ -21,7 +21,7 @@ RUN set -eux \# Comments:# - pipenv dependencies are not left in the final image# - pipenv can't touch the final image somehow-FROM --platform=$BUILDPLATFORM python:3.9-alpine as pipenv-base+FROM --platform=$BUILDPLATFORM docker.io/python:3.9-alpine as pipenv-baseWORKDIR /usr/src/pipenv@@ -37,7 +37,7 @@ RUN set -eux \# Purpose: The final image# Comments:# - Don't leave anything extra in here-FROM python:3.9-slim-bullseye as main-app+FROM docker.io/python:3.9-slim-bookworm as main-appLABEL org.opencontainers.image.authors="paperless-ngx team <[email protected]>"LABEL org.opencontainers.image.documentation="https://docs.paperless-ngx.com/"@@ -70,9 +70,9 @@ ARG RUNTIME_PACKAGES="\# Image processingliblept5 \liblcms2-2 \- libtiff5 \+ libtiff6 \libfreetype6 \- libwebp6 \+ libwebp7 \libopenjp2-7 \libimagequant0 \libraqm0 \@@ -98,6 +98,8 @@ ARG RUNTIME_PACKAGES="\libxml2 \libxslt1.1 \libgnutls30 \+ libqpdf29 \+ qpdf \# Mime type detectionfile \libmagic1 \@@ -189,9 +191,6 @@ RUN set -eux \&& echo "Installing jbig2enc" \&& cp ./jbig2enc/${JBIG2ENC_VERSION}/${TARGETARCH}${TARGETVARIANT}/jbig2 /usr/local/bin/ \&& cp ./jbig2enc/${JBIG2ENC_VERSION}/${TARGETARCH}${TARGETVARIANT}/libjbig2enc* /usr/local/lib/ \- && echo "Installing qpdf" \- && apt-get install --yes --no-install-recommends ./qpdf/${QPDF_VERSION}/${TARGETARCH}${TARGETVARIANT}/libqpdf29_*.deb \- && apt-get install --yes --no-install-recommends ./qpdf/${QPDF_VERSION}/${TARGETARCH}${TARGETVARIANT}/qpdf_*.deb \&& echo "Installing pikepdf and dependencies" \&& python3 -m pip install --no-cache-dir ./pikepdf/${PIKEPDF_VERSION}/${TARGETARCH}${TARGETVARIANT}/*.whl \&& python3 -m pip list \