From 3eb9a75f9e68497c1f4fb1c716dd2bbf18f4c59e Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 13 Apr 2020 19:20:18 +0100 Subject: [PATCH] tools/go-compile: Workaround for go requiring gcc on arm64 See: https://github.com/linuxkit/linuxkit/issues/3496 Signed-off-by: Rolf Neugebauer --- tools/go-compile/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/go-compile/Dockerfile b/tools/go-compile/Dockerfile index 6ec5bb592..661da2f35 100644 --- a/tools/go-compile/Dockerfile +++ b/tools/go-compile/Dockerfile @@ -7,6 +7,8 @@ RUN apk add --no-cache --initdb -p /out \ git \ go \ musl-dev +# Hack to work around an issue wirh go on arm64 requiring gcc +RUN [ $(uname -m) = aarch64 ] && apk add --no-cache --initdb -p /out gcc || true RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache FROM scratch