mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-13 21:59:55 +00:00
pkg: Add gcc for all packages build for arm64
This is a workaround for https://github.com/linuxkit/linuxkit/issues/3496 Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
@@ -6,6 +6,8 @@ RUN LDFLAGS=-static CFLAGS=-Werror make usermode-helper
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
# Hack to work around an issue with go on arm64 requiring gcc
|
||||
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
||||
|
||||
COPY cmd /go/src/cmd
|
||||
RUN go-compile.sh /go/src/cmd/init
|
||||
|
Reference in New Issue
Block a user