File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Build the manager binary - we don't have a registry ubi9 toolset for go1.24 yet
2
+ FROM golang:1.24.2-bullseye AS builder
3
+
4
+
5
+ WORKDIR /workspace
6
+ # Copy the Go Modules manifests
7
+ COPY go.mod go.mod
8
+ COPY go.sum go.sum
9
+ # cache deps before building and copying source so that we don't need to re-download as much
10
+ # and so that source changes don't invalidate our downloaded layer
11
+ RUN go mod download
12
+
13
+ # Copy the go source
14
+ COPY main.go main.go
15
+ COPY apis/ apis/
16
+ COPY controllers/ controllers/
17
+ COPY pkg/features pkg/features
18
+ COPY pkg/utils pkg/utils
19
+ COPY pkg/webhooks pkg/webhooks
20
+
21
+ # Build
22
+ USER root
23
+ RUN CGO_ENABLED=1 GOOS=linux GO111MODULE=on go build -tags strictfipsruntime -a -o manager main.go
24
+
25
+ FROM registry.access.redhat.com/ubi9/ubi:latest
26
+
27
+ RUN dnf install -y bind-utils
28
+
29
+ WORKDIR /
30
+ COPY --from=builder /workspace/manager .
31
+ USER 65532:65532
32
+
33
+ ENTRYPOINT ["/manager"]
You can’t perform that action at this time.
0 commit comments