From 7b8af985549c58ed50b03313048d25774e2c8521 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 12 Nov 2023 14:50:20 +0000 Subject: [PATCH] Dockerfile build stage: use native arch (since noarch) --- helm-chart/images/binderhub/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helm-chart/images/binderhub/Dockerfile b/helm-chart/images/binderhub/Dockerfile index 8a5cd5c2d..0c1841757 100644 --- a/helm-chart/images/binderhub/Dockerfile +++ b/helm-chart/images/binderhub/Dockerfile @@ -8,7 +8,11 @@ # # NOTE: If the image version is updated, also update it in ci/refreeze! # -FROM python:3.11-bullseye as build-stage + +###################################################################### +# The BinderHub wheel is pure Python so can be built for any platform +# on the native architecture (avoiding QEMU emulation) +FROM --platform=${BUILDPLATFORM:-linux/amd64} python:3.11-bullseye as build-stage # install node as required to build a binderhub wheel RUN echo "deb https://deb.nodesource.com/node_18.x bullseye main" > /etc/apt/sources.list.d/nodesource.list \