FROM openshift/golang-builder:1.10 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=37 OS_GIT_VERSION=4.1.37-202003021622-7d8f4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6 SOURCE_GIT_TAG=7d8f4dd7 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1576255975 OS_GIT_COMMIT=7d8f4dd BUILD_VERSION=v4.1.37 BUILD_RELEASE=202003021622
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.1.37.20200302.165904
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=37 OS_GIT_VERSION=4.1.37-202003021622-7d8f4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6 SOURCE_GIT_TAG=7d8f4dd7 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1576255975 OS_GIT_COMMIT=7d8f4dd BUILD_VERSION=v4.1.37 BUILD_RELEASE=202003021622
COPY --from=builder /go/src/github.com/openshift/cluster-image-registry-operator/tmp/_output/bin/cluster-image-registry-operator /usr/bin/
RUN useradd cluster-image-registry-operator
USER cluster-image-registry-operator
COPY manifests/image-references manifests/0* /manifests/

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-image-registry-operator" \
        com.redhat.component="ose-cluster-image-registry-operator-container" \
        version="v4.1.37" \
        release="202003021622" \
        io.openshift.build.commit.id="7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-image-registry-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-image-registry-operator/commit/7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6"

