Skip to content
Browse files

[dockerfile] Updates Dockerfile for OpenShift-style build

  • Loading branch information...
dougbtv committed Jan 7, 2019
1 parent cef999f commit 6880d9eb3b367b488a1686a2b42ed994a159e04c
Showing with 20 additions and 28 deletions.
  1. +20 −0 Dockerfile.openshift
  2. +0 −28 Dockerfile.rhel
@@ -0,0 +1,20 @@
# This dockerfile is specific to building Multus for OpenShift
FROM openshift/origin-release:golang-1.10 as builder

ADD . /usr/src/multus-cni

WORKDIR /usr/src/multus-cni
RUN ./build

FROM openshift/origin-base
RUN mkdir -p /usr/src/multus-cni/images && mkdir -p /usr/src/multus-cni/bin
COPY --from=builder /usr/src/multus-cni/images/70-multus.conf /usr/src/multus-cni/images
COPY --from=builder /usr/src/multus-cni/bin/multus /usr/src/multus-cni/bin
ADD ./images/ /

LABEL io.k8s.display-name="Multus CNI" \
io.k8s.description="This is a component of OpenShift Container Platform and provides a meta CNI plugin." \
io.openshift.tags="openshift" \
maintainer="Doug Smith <>"


This file was deleted.

Oops, something went wrong.

0 comments on commit 6880d9e

Please sign in to comment.
You can’t perform that action at this time.