Skip to content

Commit 41c560f

Browse files
authored
fix lock amd64 build (#1945)
Signed-off-by: chenyu.jiang <chenyu.jiang@bytedance.com>
1 parent 6c6ae56 commit 41c560f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build/container/Dockerfile.gateway

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# build gateway plugins
22
ARG BUILDER_IMAGE=golang:1.22
33
ARG 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

109
WORKDIR /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}
5958
WORKDIR /
6059
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
6160
COPY --from=builder /workspace/gateway-plugins .

0 commit comments

Comments
 (0)