Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit aff28be

Browse files
committed
Install cryptography build dependencies in requirements image.
This is needed because poetry depends on cryptography. Without this, building fails when building on an architecture where an upstream cryptography wheel is not available - for example, on an armv7 (raspberry pi 4 not in 64 bits mode).
1 parent 357561c commit aff28be

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.d/13372.docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make docker images build on armv7 by installing cryptography dependencies in the "requirements" stage. Contributed by Jasper Spaans.

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ FROM docker.io/python:${PYTHON_VERSION}-slim as requirements
4040
RUN \
4141
--mount=type=cache,target=/var/cache/apt,sharing=locked \
4242
--mount=type=cache,target=/var/lib/apt,sharing=locked \
43-
apt-get update -qq && apt-get install -yqq git \
43+
apt-get update -qq && apt-get install -yqq \
44+
build-essential cargo git libffi-dev libssl-dev \
4445
&& rm -rf /var/lib/apt/lists/*
4546

4647
# We install poetry in its own build stage to avoid its dependencies conflicting with

0 commit comments

Comments
 (0)