forked from openshift/route-override-cni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.openshift
27 lines (24 loc) · 1.16 KB
/
Dockerfile.openshift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This dockerfile is used for building for OpenShift
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.11 AS rhel8
ADD . /usr/src/route-override
WORKDIR /usr/src/route-override
ENV CGO_ENABLED=0
ENV GO111MODULE=off
ENV VERSION=rhel8 COMMIT=unset
RUN ./build_linux.sh
WORKDIR /
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.11 AS rhel7
ADD . /usr/src/route-override
WORKDIR /usr/src/route-override
ENV CGO_ENABLED=0
ENV GO111MODULE=off
RUN ./build_linux.sh
WORKDIR /
FROM registry.ci.openshift.org/ocp/builder:rhel-8-base-openshift-4.11
COPY --from=rhel7 /usr/src/route-override/bin/route-override /usr/src/route-override/rhel7/bin/route-override
COPY --from=rhel8 /usr/src/route-override/bin/route-override /usr/src/route-override/bin/route-override
COPY --from=rhel8 /usr/src/route-override/bin/route-override /usr/src/route-override/rhel8/bin/route-override
LABEL io.k8s.display-name="route override CNI" \
io.k8s.description="This is a component of OpenShift Container Platform and provides a CNI plugin to override routes" \
io.openshift.tags="openshift" \
maintainer="CTO Networking <[email protected]>"