Skip to content

Commit

Permalink
RHTAP prep for release-2.11 (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: Subbarao Meduri <smeduri@redhat.com>
  • Loading branch information
subbarao-meduri authored May 14, 2024
1 parent fa25cca commit 0a7ea55
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Containerfile.operator
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0a7ea55

Please sign in to comment.