FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.9 AS builder
WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
COPY . .

FROM registry.ci.openshift.org/ocp/4.9:cli
LABEL io.k8s.display-name="sriov-network-operator-must-gather" \
      io.k8s.description="This is a sriov must-gather image that collectes sriov network operator related resources."
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/must-gather/collection-scripts/* /usr/bin/

ENTRYPOINT /usr/bin/gather
