-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.openshift
More file actions
25 lines (19 loc) · 868 Bytes
/
Dockerfile.openshift
File metadata and controls
25 lines (19 loc) · 868 Bytes
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
# This dockerfile is specific to building Multus admission controller for OpenShift
FROM openshift/origin-release:golang-1.10 as builder
# Add everything
ENV PKG_NAME=github.com/k8snetworkplumbingwg/net-attach-def-admission-controller
ENV PKG_PATH=/go/src/$PKG_NAME
ENV GO111MODULE=off
RUN mkdir -p $PKG_PATH
COPY . $PKG_PATH/
WORKDIR $PKG_PATH
# RUN go install ./...
RUN ./build.sh
WORKDIR /
FROM openshift/origin-base
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/net-attach-def-admission-controller/bin/webhook /usr/bin/
LABEL io.k8s.display-name="Container Networking Plugins" \
io.k8s.description="This is a component of OpenShift Container Platform and provides an admission controller for Multus CNI custom resources." \
io.openshift.tags="openshift" \
maintainer="Doug Smith <dosmith@redhat.com>"
CMD ["/usr/bin/webhook"]