From e8e7e3782319b498f6aa55ec73483c1cb0a047e9 Mon Sep 17 00:00:00 2001 From: Wesley Hayutin Date: Mon, 16 Mar 2026 20:56:58 -0600 Subject: [PATCH] add template konflux dockerfile Signed-off-by: Wesley Hayutin --- konflux.Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 konflux.Dockerfile diff --git a/konflux.Dockerfile b/konflux.Dockerfile new file mode 100644 index 00000000..f7b5ae99 --- /dev/null +++ b/konflux.Dockerfile @@ -0,0 +1,25 @@ +FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.25 AS builder +COPY . . +WORKDIR $APP_ROOT/app/ +COPY go.mod go.mod +COPY go.sum go.sum +RUN go mod download +COPY cmd/main.go cmd/main.go +COPY api/ api/ +COPY internal/ internal/ +ENV BUILDTAGS strictfipsruntime +ENV GOEXPERIMENT strictfipsruntime +RUN CGO_ENABLED=1 GOOS=linux go build -tags "$BUILDTAGS" -mod=mod -a -o manager cmd/main.go + +FROM registry.redhat.io/ubi9/ubi:latest +COPY --from=builder $APP_ROOT/app/manager /manager + +USER 65532:65532 + +ENTRYPOINT ["/manager"] + +LABEL description="OpenShift API for Data Protection - Non-Admin" +LABEL io.k8s.description="OpenShift API for Data Protection - Non-Admin" +LABEL io.k8s.display-name="OADP Non-Admin" +LABEL io.openshift.tags="migration" +LABEL summary="OpenShift API for Data Protection - Non-Admin"