From df2a797b489d95774fdc77054ca8f5d475643c2e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 2 Sep 2024 16:00:13 +0200 Subject: [PATCH] Dockerfile: install libgcc instead of gcc The comment describes we need gcc for libgcc only, so we may as well install that. Signed-off-by: Sebastiaan van Stijn --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bddfbdbb2c..a7274aa6c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ WORKDIR /go/src/github.com/docker/cli FROM build-base-alpine AS build-alpine ARG TARGETPLATFORM # gcc is installed for libgcc only -RUN xx-apk add --no-cache musl-dev gcc +RUN xx-apk add --no-cache musl-dev libgcc FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO} AS build-base-debian ENV GOTOOLCHAIN=local