Skip to content

Commit

Permalink
[Cherry-pick] Use standard golang image as build image and distroless…
Browse files Browse the repository at this point in the history
… image as base image for kuberay operator. (#1967) (#2013)
  • Loading branch information
kevin85421 committed Mar 15, 2024
1 parent 44edfcd commit a2e99b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ray-operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.10 as builder
FROM golang:1.20.10-bullseye as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -18,7 +18,7 @@ COPY controllers/ controllers/
USER root
RUN CGO_ENABLED=1 GOOS=linux go build -tags strictfipsruntime -a -o manager main.go

FROM registry.access.redhat.com/ubi9/ubi-minimal:9.3
FROM gcr.io/distroless/base-debian11:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
Expand Down

0 comments on commit a2e99b9

Please sign in to comment.