We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53760d4 commit 427a05cCopy full SHA for 427a05c
Dockerfile
@@ -1,5 +1,5 @@
1
# Build the manager binary
2
-FROM golang:1.20 as builder
+FROM --platform=$TARGETPLATFORM golang:1.22 AS builder
3
ARG TARGETOS
4
ARG TARGETARCH
5
@@ -25,7 +25,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ma
25
26
# Use distroless as minimal base image to package the manager binary
27
# Refer to https://github.com/GoogleContainerTools/distroless for more details
28
-FROM gcr.io/distroless/static:nonroot
+FROM gcr.io/distroless/static:nonroot AS production
29
WORKDIR /
30
COPY --from=builder /workspace/manager .
31
USER 65532:65532
0 commit comments