-
Notifications
You must be signed in to change notification settings - Fork 106
/
Dockerfile.ocp
17 lines (16 loc) · 977 Bytes
/
Dockerfile.ocp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
COPY . .
RUN make _build-manager BIN_PATH=build/_output/cmd
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
LABEL io.k8s.display-name="OpenShift sriov-network-operator" \
io.k8s.description="This is the component that manange and config sriov component in Openshift cluster" \
io.openshift.tags="openshift,networking,sr-iov" \
com.redhat.delivery.appregistry=true \
maintainer="Multus team <[email protected]>"
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/manager /usr/bin/sriov-network-operator
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/manifests /manifests
COPY bindata /bindata
ENV OPERATOR_NAME=sriov-network-operator
ENV CLUSTER_TYPE=openshift
CMD ["/usr/bin/sriov-network-operator"]