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