Skip to content

Commit

Permalink
Merge pull request #601 from dgrisonnet/fix-multiarch
Browse files Browse the repository at this point in the history
Fix multiarch image build
  • Loading branch information
dgrisonnet committed Aug 22, 2023
2 parents 74ba84b + 198c469 commit cb883fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
@@ -1,3 +1,4 @@
ARG ARCH
ARG GO_VERSION

FROM golang:${GO_VERSION} as build
Expand All @@ -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
Expand Down

0 comments on commit cb883fb

Please sign in to comment.