File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11# build gateway plugins
22ARG BUILDER_IMAGE=golang:1.22
33ARG RUNTIME_IMAGE=gcr.io/distroless/base-debian12:nonroot
4+ FROM ${BUILDER_IMAGE} AS builder
45
5- ARG TARGETOS=linux
6- ARG TARGETARCH=amd64
7-
8- FROM --platform=${TARGETOS}/${TARGETARCH} ${BUILDER_IMAGE} AS builder
6+ ARG TARGETOS
7+ ARG TARGETARCH
98
109WORKDIR /workspace
1110
@@ -55,7 +54,7 @@ RUN set -eux; \
5554
5655# Use distroless as minimal base image to package the manager binary
5756# Refer to https://github.com/GoogleContainerTools/distroless for more details
58- FROM --platform=${TARGETOS}/${TARGETARCH} ${RUNTIME_IMAGE}
57+ FROM ${RUNTIME_IMAGE}
5958WORKDIR /
6059COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
6160COPY --from=builder /workspace/gateway-plugins .
You can’t perform that action at this time.
0 commit comments