From 44db159619513e602cbfa91640099bc70d285c5c Mon Sep 17 00:00:00 2001 From: adrianc Date: Sun, 8 Sep 2024 13:44:45 +0300 Subject: [PATCH] update Dockerfile base image current base image was failing on arm64 builds. we now use debian for build and distroless for the app. 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