From f6bd8ffb48f2b87d9a2f8f15157a412fc63ca9a1 Mon Sep 17 00:00:00 2001 From: adrianc Date: Sun, 8 Sep 2024 10:52:44 +0300 Subject: [PATCH] arm64 build support additional fixes Signed-off-by: adrianc --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d83b31..77771cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,14 @@ -FROM golang:alpine as builder +FROM golang:1.22 as builder WORKDIR /workspace -ADD ./ ./ - -ENV HTTP_PROXY $http_proxy -ENV HTTPS_PROXY $https_proxy +ADD ./go.mod ./ +ADD ./go.sum ./ +RUN go mod download -RUN apk add --update --virtual build-dependencies build-base binutils linux-headers git -RUN make +ADD ./ ./ +RUN make all -FROM alpine +FROM gcr.io/distroless/base WORKDIR / COPY --from=builder /workspace/build/ib-kubernetes / COPY --from=builder /workspace/build/plugins /plugins