Skip to content

Commit c646964

Browse files
committed
Revert operator Dockerfile changes
Signed-off-by: antznette1 <ochiezeanthonette@gmail.com>
1 parent 6cd6eb7 commit c646964

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

infra/feast-operator/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
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
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
WORKDIR /workspace
7-
86
# Copy the Go Modules manifests
97
COPY go.mod go.mod
108
COPY 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.
2523
RUN 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
2826
WORKDIR /
29-
COPY --from=builder /workspace/manager .
27+
COPY --from=builder /opt/app-root/src/manager .
28+
USER 65532:65532
3029

3130
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)