A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Adds a CI job for hadolint over all the Dockerfiles, fixes the minor thing it complained about
Trenton Holmesdaad63489483
diff --git a/.github/workflows/reusable-ci-backend.yml b/.github/workflows/reusable-ci-backend.ymlindex b6459c110..2b54c6a8f 100644--- a/.github/workflows/reusable-ci-backend.yml+++ b/.github/workflows/reusable-ci-backend.yml@@ -106,3 +106,26 @@ jobs:run: |cd src/pipenv run coveralls --service=github++ dockerfile-lint:+ name: "Lint ${{ matrix.dockerfile }}"+ runs-on: ubuntu-20.04+ strategy:+ matrix:+ dockerfile:+ - Dockerfile+ - docker-builders/Dockerfile.qpdf+ - docker-builders/Dockerfile.jbig2enc+ - docker-builders/Dockerfile.psycopg2+ - docker-builders/Dockerfile.pikepdf+ fail-fast: false+ steps:+ -+ name: Checkout+ uses: actions/checkout@v3+ -+ uses: hadolint/[email protected]+ with:+ failure-threshold: warning+ dockerfile: ${{ matrix.dockerfile }}+ ignore: DL3008,DL3013,DL3003diff --git a/Dockerfile b/Dockerfileindex 981a194c9..c57f0b806 100644--- a/Dockerfile+++ b/Dockerfile@@ -117,19 +117,18 @@ COPY gunicorn.conf.py .# setup docker-specific things# Use mounts to avoid copying installer files into the image# These change sometimes, but rarely-ARG DOCKER_SRC=/usr/src/paperless/src/docker/-WORKDIR ${DOCKER_SRC}+WORKDIR /usr/src/paperless/src/docker/COPY [ \- "docker/imagemagick-policy.xml", \- "docker/supervisord.conf", \- "docker/docker-entrypoint.sh", \- "docker/docker-prepare.sh", \- "docker/paperless_cmd.sh", \- "docker/wait-for-redis.py", \- "docker/management_script.sh", \- "docker/install_management_commands.sh", \- "${DOCKER_SRC}" \+ "docker/imagemagick-policy.xml", \+ "docker/supervisord.conf", \+ "docker/docker-entrypoint.sh", \+ "docker/docker-prepare.sh", \+ "docker/paperless_cmd.sh", \+ "docker/wait-for-redis.py", \+ "docker/management_script.sh", \+ "docker/install_management_commands.sh", \+ "/usr/src/paperless/src/docker/" \]RUN set -eux \@@ -162,15 +161,15 @@ RUN --mount=type=bind,from=qpdf-builder,target=/qpdf \&& apt-get install --yes --no-install-recommends /qpdf/usr/src/qpdf/libqpdf28_*.deb \&& apt-get install --yes --no-install-recommends /qpdf/usr/src/qpdf/qpdf_*.deb \&& echo "Installing pikepdf and dependencies" \+ && python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/pyparsing*.whl \&& python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/packaging*.whl \&& python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/lxml*.whl \&& python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/Pillow*.whl \- && python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/pyparsing*.whl \&& python3 -m pip install --no-cache-dir /pikepdf/usr/src/wheels/pikepdf*.whl \- && python -m pip list \+ && python3 -m pip list \&& echo "Installing psycopg2" \&& python3 -m pip install --no-cache-dir /psycopg2/usr/src/wheels/psycopg2*.whl \- && python -m pip list+ && python3 -m pip list# Python dependencies# Change pretty frequently