forked from redhat-developer/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rhel
23 lines (17 loc) · 1.04 KB
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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.13 AS builder
COPY . /go/src/github.com/openshift/odo
WORKDIR /go/src/github.com/openshift/odo
RUN make cross
FROM registry.access.redhat.com/ubi7/ubi
LABEL com.redhat.component=atomic-openshift-odo-cli-artifacts-container \
name=openshift/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=1.2.6
COPY --from=builder /go/src/github.com/openshift/odo/dist/bin/darwin-amd64/odo /usr/share/openshift/odo/mac/odo
COPY --from=builder /go/src/github.com/openshift/odo/dist/bin/windows-amd64/odo.exe /usr/share/openshift/odo/windows/odo.exe
COPY --from=builder /go/src/github.com/openshift/odo/dist/bin/linux-amd64/odo /usr/share/openshift/odo/linux/odo