From ffd6a64ce9e4bd9a05b81f08fb897a1420ab8d3e Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 9 Oct 2023 17:34:28 -0700 Subject: [PATCH] Attempt at alpine on arm64 - not working pip attempts to download musllinux_1_1 wheels and can't find pikepdf's which is only 1_2. Not clear how to fix. --- .docker/Dockerfile.alpine | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.docker/Dockerfile.alpine b/.docker/Dockerfile.alpine index a4e66e633..f513831f6 100644 --- a/.docker/Dockerfile.alpine +++ b/.docker/Dockerfile.alpine @@ -18,6 +18,22 @@ RUN apk add --no-cache \ python3-dev \ py3-pip +# On arm64, we need to build cffi from source. +ARG TARGETPLATFORM + +RUN if [ "${TARGETPLATFORM}" == "linux/arm64" ]; then \ + apk add --no-cache \ + build-base \ + autoconf \ + automake \ + libtool \ + zlib-dev \ + libffi-dev \ + cairo-dev \ + pkgconfig \ + ; \ + fi + COPY . /app WORKDIR /app