A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Experiment with a buildx cache mount for pip's directory. Does it increase image size?
Trenton H328c87995b31
diff --git a/Dockerfile b/Dockerfileindex 288593049..43471f6a1 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,4 +1,4 @@-# syntax=docker/dockerfile:1.4+# syntax=docker/dockerfile:1# https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md# Stage: compile-frontend@@ -216,13 +216,15 @@ ARG BUILD_PACKAGES="\git \default-libmysqlclient-dev"-RUN set -eux \+# hadolint ignore=DL3042+RUN --mount=type=cache,target=/root/.cache/pip/,id=pip-cache \+ set -eux \&& echo "Installing build system packages" \&& apt-get update \&& apt-get install --yes --quiet --no-install-recommends ${BUILD_PACKAGES} \&& python3 -m pip install --no-cache-dir --upgrade wheel \&& echo "Installing Python requirements" \- && python3 -m pip install --default-timeout=1000 --no-cache-dir --requirement requirements.txt \+ && python3 -m pip install --default-timeout=1000 --requirement requirements.txt \&& echo "Installing NLTK data" \&& python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" snowball_data \&& python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" stopwords \