From ead9fb9926946bfc1bb1468afa331eb09432205c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 15 Dec 2025 17:39:49 +0100 Subject: [PATCH] Dockerfile numpy install --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index d2fe3d53..5115cef0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,18 @@ ENV OPENSSL_LIB_DIR="/usr/lib/arm-linux-gnueabihf" ENV OPENSSL_INCLUDE_DIR="/usr/include/openssl" # Additional environment variables for cryptography Rust build ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 + +# Install numpy first - required for building scikit-image on ARM +RUN --mount=type=cache,id=pip,sharing=locked,target=/tmp/pip-cache \ + pip install \ + --prefer-binary \ + --extra-index-url https://www.piwheels.org/simple \ + --extra-index-url https://pypi.anaconda.org/ARM-software/simple \ + --cache-dir=/tmp/pip-cache \ + --target=/dependencies \ + numpy + +# Now install remaining requirements (scikit-image needs numpy headers) RUN --mount=type=cache,id=pip,sharing=locked,target=/tmp/pip-cache \ pip install \ --prefer-binary \