Skip to content

Commit

Permalink
Use ubi go-toolset image
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Asthana <[email protected]>
  • Loading branch information
anishasthana committed Jul 6, 2023
1 parent 2c97ac3 commit 677841e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ray-operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.17.12-11 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -15,6 +15,7 @@ COPY apis/ apis/
COPY controllers/ controllers/

# Build
USER root
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go

# Use distroless as minimal base image to package the manager binary
Expand Down

0 comments on commit 677841e

Please sign in to comment.