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