Skip to content

Commit

Permalink
Merge pull request #612 from ckandag/dockerfile
Browse files Browse the repository at this point in the history
OCM-8013| feat: Dockerfile for Konflux builds
  • Loading branch information
renan-campos authored May 15, 2024
2 parents 119e9d2 + debb035 commit b0b70d9
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 b0b70d9

Please sign in to comment.