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 the manager binary
2- FROM golang :1.22.9 AS builder
2+ FROM registry.access.redhat.com/ubi9/go-toolset :1.22.9 AS builder
33ARG TARGETOS
44ARG TARGETARCH
55
6- WORKDIR /workspace
7-
86# Copy the Go Modules manifests
97COPY go.mod go.mod
108COPY go.sum go.sum
@@ -24,8 +22,9 @@ COPY internal/controller/ internal/controller/
2422# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
2523RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
2624
27- FROM gcr.io/distroless/base-debian12:nonroot
25+ FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
2826WORKDIR /
29- COPY --from=builder /workspace/manager .
27+ COPY --from=builder /opt/app-root/src/manager .
28+ USER 65532:65532
3029
3130ENTRYPOINT ["/manager" ]
You can’t perform that action at this time.
0 commit comments