Dockerfile numpy install

This commit is contained in:
dgtlmoon committed 2025-12-15 17:39:49 +01:00
1 parent 01565ccb0f
commit ead9fb9926
1 file changed
+12
+12
View File
@@ -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 \