Skip to content

Commit

Permalink
OCM-8013| feat: Dockerfile for Konflux builds
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Kandagatla <[email protected]>
  • Loading branch information
ckandag committed May 15, 2024
1 parent 119e9d2 commit debb035
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit debb035

Please sign in to comment.