From bc8eb972c352d2a0ffe36600f887601ce59ce031 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:10:38 -0800 Subject: [PATCH] Promotes zxing to be install for all platforms in the Docker image --- Dockerfile | 11 +++++------ Pipfile | 2 +- Pipfile.lock | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8fdcf62d..c9b8a0799 100644 --- a/Dockerfile +++ b/Dockerfile @@ -221,12 +221,11 @@ RUN --mount=type=cache,target=/root/.cache/pip/,id=pip-cache \ && apt-get install --yes --quiet --no-install-recommends ${BUILD_PACKAGES} \ && python3 -m pip install --no-cache-dir --upgrade wheel \ && echo "Installing Python requirements" \ - && curl --fail --silent --show-error --location \ - --output psycopg_c-3.2.4-cp312-cp312-linux_x86_64.whl \ - https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_x86_64.whl \ - && curl --fail --silent --show-error --location \ - --output psycopg_c-3.2.4-cp312-cp312-linux_aarch64.whl \ - https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_aarch64.whl \ + && curl --fail --silent --show-error --location --remote-name --parallel --parallel-max 4 \ + https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_x86_64.whl \ + https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_aarch64.whl \ + https://github.com/paperless-ngx/builder/releases/download/zxing-2.3.0/zxing_cpp-2.3.0-cp312-cp312-linux_aarch64.whl \ + https://github.com/paperless-ngx/builder/releases/download/zxing-2.3.0/zxing_cpp-2.3.0-cp312-cp312-linux_x86_64.whl \ && python3 -m pip install --default-timeout=1000 --find-links . --requirement requirements.txt \ && echo "Installing NLTK data" \ && python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" snowball_data \ diff --git a/Pipfile b/Pipfile index 0e2486b03..1e69f316d 100644 --- a/Pipfile +++ b/Pipfile @@ -58,7 +58,7 @@ uvicorn = {extras = ["standard"], version = "==0.25.0"} watchdog = "~=6.0" whitenoise = "~=6.8" whoosh = "~=2.7" -zxing-cpp = {version = "*", platform_machine = "== 'x86_64'"} +zxing-cpp = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index de4290d84..1889d3d4a 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -2791,7 +2791,6 @@ "sha256:fbd5b253ad0f8823c5c104feaaa19acab95c217cb924b012d55ff339c42b3583", "sha256:fd3f175f7b57cfbdea56afdb5335eaebaadeebc06e20a087d9aa3f99637c4aa5" ], - "markers": "platform_machine == 'x86_64'", "version": "==2.3.0" } },