From 36895179031d5becbb520cf40c7e17be0b439480 Mon Sep 17 00:00:00 2001 From: Subbarao Meduri Date: Wed, 8 May 2024 08:46:40 -0400 Subject: [PATCH] RHTAP prep for release-2.11 Signed-off-by: Subbarao Meduri --- Containerfile.operator | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Containerfile.operator diff --git a/Containerfile.operator b/Containerfile.operator new file mode 100644 index 00000000000..84bf09b523a --- /dev/null +++ b/Containerfile.operator @@ -0,0 +1,17 @@ +# Copyright Contributors to the Open Cluster Management project +# Licensed under the Apache License 2.0 + +FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS builder + +WORKDIR /workspace +COPY . . + +RUN GOOS=linux GOFLAGS="" GOARCH=amd64 CGO_ENABLED=1 go build -o operator cmd/operator/main.go + +FROM registry.access.redhat.com/ubi8/ubi-minimal:latest + +COPY --from=builder /workspace/operator /bin/operator + +USER nobody + +ENTRYPOINT ["/bin/operator"]