From 220d20b0514a01ac5707bb4d8d5d3eca9a5de074 Mon Sep 17 00:00:00 2001 From: Morlay Date: Wed, 28 Jul 2021 09:45:06 +0800 Subject: [PATCH] images/bootstrap: added arm64 support --- images/bootstrap/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/bootstrap/Dockerfile b/images/bootstrap/Dockerfile index e679e60cfdb9c..01a27542a0ca2 100644 --- a/images/bootstrap/Dockerfile +++ b/images/bootstrap/Dockerfile @@ -93,10 +93,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ rm -rf /var/lib/apt/lists/* # Add the Docker apt-repository +ARG TARGETARCH RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg \ | apt-key add - && \ add-apt-repository \ - "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ + "deb [arch=${TARGETARCH:-amd64}] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) stable" # Install Docker