FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.7 AS builder
ADD . /usr/src/network-resources-injector
RUN cd /usr/src/network-resources-injector && make

FROM registry.ci.openshift.org/ocp/4.7:base
COPY --from=builder /usr/src/network-resources-injector/bin/webhook /usr/bin/
COPY --from=builder /usr/src/network-resources-injector/bin/installer /usr/bin/

LABEL io.k8s.display-name="SRIOV Admission Controller"

CMD ["webhook"]
