-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathDockerfile.openshift
More file actions
22 lines (16 loc) · 933 Bytes
/
Dockerfile.openshift
File metadata and controls
22 lines (16 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This dockerfile is specific to building Multus for OpenShift
FROM openshift/origin-release:golang-1.24 as build
# Add everything
ADD . /usr/src/multi-networkpolicy-iptables
WORKDIR /usr/src/multi-networkpolicy-iptables
RUN CGO_ENABLED=0 go build ./cmd/multi-networkpolicy-iptables/
FROM registry.access.redhat.com/ubi8/ubi:latest
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multi-networkpolicy-iptables
RUN dnf install -y iptables
COPY --from=build /usr/src/multi-networkpolicy-iptables/multi-networkpolicy-iptables /usr/bin
WORKDIR /usr/bin
LABEL io.k8s.display-name="Multus NetworkPolicy" \
io.k8s.description="This is a component of OpenShift Container Platform and provides NetworkPolicy objects for secondary interfaces created with Multus CNI" \
io.openshift.tags="openshift" \
maintainer="Doug Smith <dosmith@redhat.com>"
ENTRYPOINT ["multi-networkpolicy-iptables"]