# Thin overlay on clusterzx/paperless-ai:3.0.9 — same digest as
# the :latest tag pulled on 2026-04-06, but pinned so future image
# refreshes do not silently wipe the type-restriction patches.
#
# Patch 1: routes/setup.js  — restrict-existing-document-types on
#          the manual processing route (already applied previously
#          by docker cp, but volatile across container recreation).
# Patch 2: server.js        — same restriction on the scheduled-scan
#          loop. Without this, new document types kept appearing
#          even with RESTRICT_TO_EXISTING_DOCUMENT_TYPES=yes.
FROM clusterzx/paperless-ai:3.0.9

COPY setup.js.patched  /app/routes/setup.js
COPY server.js.patched /app/server.js
