FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202005041055 BUILD_VERSION=v4.3.19 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=19 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.19-202005041055 
ENV __doozer=merge OS_GIT_COMMIT=a9548e6 OS_GIT_VERSION=4.3.19-202005041055-a9548e6 SOURCE_DATE_EPOCH=1569462177 SOURCE_GIT_COMMIT=a9548e6d0ac621a5c6e8e3544ca680280a1ca746 SOURCE_GIT_TAG=a9548e6 SOURCE_GIT_URL=https://github.com/openshift/cluster-storage-operator 
WORKDIR /go/src/github.com/openshift/cluster-storage-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.3.19.20200504.105538
ENV __doozer=update BUILD_RELEASE=202005041055 BUILD_VERSION=v4.3.19 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=19 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.19-202005041055 
ENV __doozer=merge OS_GIT_COMMIT=a9548e6 OS_GIT_VERSION=4.3.19-202005041055-a9548e6 SOURCE_DATE_EPOCH=1569462177 SOURCE_GIT_COMMIT=a9548e6d0ac621a5c6e8e3544ca680280a1ca746 SOURCE_GIT_TAG=a9548e6 SOURCE_GIT_URL=https://github.com/openshift/cluster-storage-operator 
COPY --from=builder /go/src/github.com/openshift/cluster-storage-operator/manager /usr/bin/cluster-storage-operator
COPY manifests /manifests
RUN useradd cluster-storage-operator
USER cluster-storage-operator
ENTRYPOINT ["/usr/bin/cluster-storage-operator"]

LABEL \
        io.openshift.release.operator="true" \
        io.k8s.display-name="OpenShift Cluster Storage Operator" \
        io.k8s.description="This is a component of OpenShift Container Platform and manages the lifecycle of cluster storage components." \
        maintainer="Matthew Wong <mawong@redhat.com>" \
        name="openshift/ose-cluster-storage-operator" \
        com.redhat.component="ose-cluster-storage-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        version="v4.3.19" \
        release="202005041055" \
        io.openshift.build.commit.id="a9548e6d0ac621a5c6e8e3544ca680280a1ca746" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-storage-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-storage-operator/commit/a9548e6d0ac621a5c6e8e3544ca680280a1ca746"

