FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=853099752b710f5e13c4938ea1dd758b8d18b5aa SOURCE_DATE_EPOCH=1566334453 BUILD_VERSION=v4.1.14 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_GIT_TAG=85309975 BUILD_RELEASE=201908291507
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.1.14.20190829.150756
ENV SOURCE_GIT_COMMIT=853099752b710f5e13c4938ea1dd758b8d18b5aa SOURCE_DATE_EPOCH=1566334453 BUILD_VERSION=v4.1.14 SOURCE_GIT_URL=https://github.com/openshift/cluster-image-registry-operator SOURCE_GIT_TAG=85309975 BUILD_RELEASE=201908291507
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 \
        com.redhat.component="ose-cluster-image-registry-operator-container" \
        name="openshift/ose-cluster-image-registry-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-image-registry-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-image-registry-operator/commit/853099752b710f5e13c4938ea1dd758b8d18b5aa" \
        version="v4.1.14" \
        io.openshift.build.commit.id="853099752b710f5e13c4938ea1dd758b8d18b5aa" \
        release="201908291507"

