Skip to content

Commit

Permalink
fix(Dockerfile.alpine): gcloud auth and targetarch from alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Graves <[email protected]>
  • Loading branch information
keg committed Nov 1, 2023
1 parent cfdd696 commit b676b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.21.3-alpine AS bld
FROM --platform=$TARGETARCH golang:1.21.3-alpine AS bld
ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETVARIANT
Expand All @@ -22,7 +22,7 @@ RUN /manifest-tool/hack/makestatic.sh $TARGETARCH ${TARGETVARIANT#v}
FROM alpine:3.17.0
COPY --from=bld /manifest-tool/manifest-tool /manifest-tool
COPY --from=bld /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=bld --chown=0:0 /go/bin/docker-credential-gcr /usr/bin/docker-credential-gcr
COPY --from=bld --chown=0:0 /go/bin/docker-credential-gcr /usr/bin/docker-credential-gcloud
COPY --from=bld --chown=0:0 /go/bin/docker-credential-ecr-login /usr/bin/docker-credential-ecr-login
COPY --from=bld --chown=0:0 /go/bin/docker-credential-acr-env /usr/bin/docker-credential-acr-env
ENV PATH="${PATH}:/"
Expand Down

0 comments on commit b676b43

Please sign in to comment.