Fun with aarach64

This commit is contained in:
Trenton Holmes
2025-03-02 07:44:37 -08:00
committed by Trenton H
parent 645c5f0e8e
commit 905a9ae799
3 changed files with 98 additions and 60 deletions

View File

@@ -214,11 +214,11 @@ ARG BUILD_PACKAGES="\
ARG ZXING_VERSION=2.3.0
ARG PSYCOPG_VERSION=3.2.4
# hadolint ignore=DL3042
RUN set -eux \
&& echo "Installing build system packages" \
&& apt-get update \
&& apt-get install --yes --quiet --no-install-recommends ${BUILD_PACKAGES}
# hadolint ignore=DL3042
RUN echo "Installing Python requirements" \
&& curl --fail --silent --no-progress-meter --show-error --location --remote-name-all --parallel --parallel-max 4 \
https://github.com/paperless-ngx/builder/releases/download/psycopg-${PSYCOPG_VERSION}/psycopg_c-${PSYCOPG_VERSION}-cp312-cp312-linux_x86_64.whl \
@@ -226,9 +226,9 @@ RUN echo "Installing Python requirements" \
https://github.com/paperless-ngx/builder/releases/download/zxing-${ZXING_VERSION}/zxing_cpp-${ZXING_VERSION}-cp312-cp312-linux_aarch64.whl \
https://github.com/paperless-ngx/builder/releases/download/zxing-${ZXING_VERSION}/zxing_cpp-${ZXING_VERSION}-cp312-cp312-linux_x86_64.whl \
&& ls -ahl . \
&& uv lock --find-links ./ \
&& uv sync --verbose --frozen --no-dev --no-python-downloads --python-preference system --find-links ./ --no-build-package zxing-cpp --no-build-package psycopg-c \
&& chown -R 1000:1000 .venv \
&& pip install ./psycopg_c-${PSYCOPG_VERSION}-cp312-cp312-linux_x86_64.whl \
&& uv export --quiet --no-dev --format requirements-txt --output-file requirements.txt \
&& uv pip install --system --no-python-downloads --python-preference system --requirements 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 \