Skip to content

Commit

Permalink
Attempt at alpine on arm64 - not working
Browse files Browse the repository at this point in the history
pip attempts to download musllinux_1_1 wheels and can't find pikepdf's which is only 1_2. Not clear how to fix.
  • Loading branch information
jbarlow83 committed Oct 10, 2023
1 parent 5727f1e commit ffd6a64
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffd6a64

Please sign in to comment.