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:
Rolf Neugebauer
2020-04-13 22:50:27 +01:00
parent 25d5ba8ef8
commit 463216acda
13 changed files with 26 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
# We also need the Go binary which calls it:
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 . /go/src/trim-after-delete
RUN go-compile.sh /go/src/trim-after-delete