From debb035093f6147fc82b18ea621578d570391b34 Mon Sep 17 00:00:00 2001 From: Chaitanya Kandagatla Date: Wed, 15 May 2024 10:13:47 -0500 Subject: [PATCH] OCM-8013| feat: Dockerfile for Konflux builds Signed-off-by: Chaitanya Kandagatla --- docker/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..c8f9d112 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,19 @@ +FROM registry.access.redhat.com/ubi9/go-toolset:latest AS builder + +WORKDIR /opt/app-root/src +COPY . . + + +#TODO Identify the full set of supported arch +#TODO Create a Make Target to build all supported release binaries +RUN go mod download +RUN go build -buildvcs=false -o ./releases/ocm ./cmd/ocm + + +FROM registry.access.redhat.com/ubi9/ubi-micro:latest +LABEL name="ocm-cli" +LABEL description="OCM CLI" +LABEL vendor="Red Hat, Inc." + +COPY LICENSE.txt /licenses +COPY --from=builder /opt/app-root/src/releases /releases \ No newline at end of file