From b8b172466fe1605e29e8a4642fcce47ecf2ca7f0 Mon Sep 17 00:00:00 2001
From: Dan Callahan <danc@element.io>
Date: Mon, 15 Feb 2021 15:30:16 +0000
Subject: [PATCH] Add rustc to Docker image build environment (#9405)

This is needed to build the cryptography library, since it does not
provide wheels for ARMv7.

Fixes #9403

Signed-off-by: Dan Callahan <danc@element.io>
---
 changelog.d/9405.misc | 1 +
 docker/Dockerfile     | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 changelog.d/9405.misc

diff --git a/changelog.d/9405.misc b/changelog.d/9405.misc
new file mode 100644
index 0000000000..d82c3b832f
--- /dev/null
+++ b/changelog.d/9405.misc
@@ -0,0 +1 @@
+Add rustc as a dependency when building Docker images.
diff --git a/docker/Dockerfile b/docker/Dockerfile
index afd896ffc1..d619ee08ed 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -28,11 +28,13 @@ RUN apt-get update && apt-get install -y \
     libwebp-dev \
     libxml++2.6-dev \
     libxslt1-dev \
+    rustc \
     zlib1g-dev \
  && rm -rf /var/lib/apt/lists/*
 
 # Build dependencies that are not available as wheels, to speed up rebuilds
 RUN pip install --prefix="/install" --no-warn-script-location \
+        cryptography \
         frozendict \
         jaeger-client \
         opentracing \
-- 
GitLab