-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathDockerfile.openshift
More file actions
20 lines (16 loc) · 976 Bytes
/
Dockerfile.openshift
File metadata and controls
20 lines (16 loc) · 976 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 registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS build
# Add everything
ADD . /usr/src/multus-networkpolicy
WORKDIR /usr/src/multus-networkpolicy
RUN CGO_ENABLED=0 go build -a -o multi-networkpolicy-nftables ./cmd/
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
LABEL org.opencontainers.image.source https://github.com/openshift/multus-networkpolicy
RUN dnf install -y nftables && dnf clean all && rm -rf /var/cache/dnf/*
COPY --from=build /usr/src/multus-networkpolicy/multi-networkpolicy-nftables /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-nftables"]