FROM openshift/golang-builder:1.13 AS builder
WORKDIR /go/src/github.com/openshift/aws-ebs-csi-driver-operator
COPY . .
RUN make

FROM ubi7-minimal:7-released
COPY --from=builder /go/src/github.com/openshift/aws-ebs-csi-driver-operator/aws-ebs-csi-driver-operator /usr/bin/
ENTRYPOINT ["/usr/bin/aws-ebs-csi-driver-operator"]

LABEL \
        com.redhat.component="ose-aws-ebs-csi-driver-operator-container" \
        com.redhat.delivery.appregistry="false" \
        io.k8s.description="The aws-ebs-csi-driver-operator installs and maintains the AWS EBS CSI Driver on a cluster." \
        io.k8s.display-name="OpenShift AWS EBS CSI Driver Operator" \
        io.openshift.maintainer.component="Storage" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.tags="openshift,aws-ebs-csi-driver-operator" \
        License="ASL2.0" \
        maintainer="Jan Safranek <jsafrane@redhat.com>" \
        name="openshift/ose-aws-ebs-csi-driver-operator" \
        summary="The aws-ebs-csi-driver-operator installs and maintains the AWS EBS CSI Driver on a cluster." \
        version="v4.5"
