Skip to content

Commit 8492d77

Browse files
committed
CARRY: add Konflux dockerfile
Signed-off-by: Pat O'Connor <[email protected]>
1 parent f0ca1ea commit 8492d77

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

ray-operator/Dockerfile.rhoai

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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"]

0 commit comments

Comments
 (0)