Merge pull request #602 from dgrisonnet/backport-601-release-0.10

release 0.10: Fix multiarch image build
This commit is contained in:
Damien Grisonnet 2023-08-23 16:48:18 +02:00 committed by GitHub
commit 12197fda5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
ARG ARCH
ARG GO_VERSION ARG GO_VERSION
FROM golang:${GO_VERSION} as build FROM golang:${GO_VERSION} as build
@ -14,7 +15,7 @@ COPY Makefile Makefile
ARG ARCH ARG ARCH
RUN make prometheus-adapter 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 / COPY --from=build /go/src/sigs.k8s.io/prometheus-adapter/adapter /
USER 65534 USER 65534