FROM openshift/golang-builder:1.10 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-7d8f4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6 SOURCE_GIT_TAG=4.0.0-189-g7d8f4dd78 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1576255975 OS_GIT_COMMIT=7d8f4dd BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.1.41.20200413.064634
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-7d8f4dd OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=7d8f4dd782fc82e38eee2b8f09c4f5e74da3d1f6 SOURCE_GIT_TAG=4.0.0-189-g7d8f4dd78 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_DATE_EPOCH=1576255975 OS_GIT_COMMIT=7d8f4dd BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
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" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        version="v4.1.41" \
        release="202004130646" \
        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"

