Files
odo/Dockerfile.rhel
Tomas Kral 5f79c542a8 openshift/odo -> redhat-developer/odo (#5268)
* openshift/odo -> redhat-developer/odo

* update more links to redhat-developer
2021-12-01 16:38:34 +01:00

24 lines
1.1 KiB
Docker

# This Dockerfile builds an image containing the Linux, Mac and Windows version of odo
# layered on top of the ubi7/ubi image.
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.16 AS builder
COPY . /go/src/github.com/redhat-developer/odo
WORKDIR /go/src/github.com/redhat-developer/odo
RUN make cross
FROM registry.access.redhat.com/ubi7/ubi
LABEL com.redhat.component=atomic-openshift-odo-cli-artifacts-container \
name=redhat-developer/odo-cli-artifacts \
io.k8s.display-name=atomic-openshift-odo-cli-artifacts-image \
maintainer=devtools-deploy@redhat.com \
summary="This image contains the Linux, Mac and Windows version of odo"
# Change version as needed. Note no "-" is allowed
LABEL version=2.4.3
COPY --from=builder /go/src/github.com/redhat-developer/odo/dist/bin/darwin-amd64/odo /usr/share/redhat-developer/odo/mac/odo
COPY --from=builder /go/src/github.com/redhat-developer/odo/dist/bin/windows-amd64/odo.exe /usr/share/redhat-developer/odo/windows/odo.exe
COPY --from=builder /go/src/github.com/redhat-developer/odo/dist/bin/linux-amd64/odo /usr/share/redhat-developer/odo/linux/odo