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

Commit

Permalink
Install cryptography build dependencies in requirements image.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
jap committed Jul 25, 2022
1 parent 357561c commit aff28be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/13372.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make docker images build on armv7 by installing cryptography dependencies in the "requirements" stage. Contributed by Jasper Spaans.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aff28be

Please sign in to comment.