From aff28beade893aa09fa067463fb9381f10715f70 Mon Sep 17 00:00:00 2001 From: Jasper Spaans Date: Sat, 23 Jul 2022 22:08:19 +0200 Subject: [PATCH] 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). --- changelog.d/13372.docker | 1 + docker/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog.d/13372.docker diff --git a/changelog.d/13372.docker b/changelog.d/13372.docker new file mode 100644 index 000000000000..238c78de091b --- /dev/null +++ b/changelog.d/13372.docker @@ -0,0 +1 @@ +Make docker images build on armv7 by installing cryptography dependencies in the "requirements" stage. Contributed by Jasper Spaans. \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index f4d8e6c92575..d2d8f849b1a0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -40,7 +40,8 @@ FROM docker.io/python:${PYTHON_VERSION}-slim as requirements RUN \ --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ - apt-get update -qq && apt-get install -yqq git \ + apt-get update -qq && apt-get install -yqq \ + build-essential cargo git libffi-dev libssl-dev \ && rm -rf /var/lib/apt/lists/* # We install poetry in its own build stage to avoid its dependencies conflicting with