Merge pull request #601 from dgrisonnet/fix-multiarch

Fix multiarch image build
This commit is contained in:
Damien Grisonnet 2023-08-22 18:18:47 +02:00 committed by GitHub
commit cb883fb789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
ARG ARCH
ARG GO_VERSION
FROM golang:${GO_VERSION} as build
@ -14,7 +15,7 @@ COPY Makefile Makefile
ARG ARCH
RUN make prometheus-adapter
FROM gcr.io/distroless/static:latest
FROM gcr.io/distroless/static:latest-$ARCH
COPY --from=build /go/src/sigs.k8s.io/prometheus-adapter/adapter /
USER 65534