FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=377cff19428838c0b2c4fbde762e535471922a92 SOURCE_GIT_TAG=377cff19 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-controller-manager-operator SOURCE_DATE_EPOCH=1567584086 BUILD_VERSION=v4.2.20 BUILD_RELEASE=202002171604
WORKDIR /go/src/github.com/openshift/cluster-openshift-controller-manager-operator
COPY . .
RUN make

FROM openshift/ose-base:v4.2.20.20200217.160430
ENV SOURCE_GIT_COMMIT=377cff19428838c0b2c4fbde762e535471922a92 SOURCE_GIT_TAG=377cff19 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-controller-manager-operator SOURCE_DATE_EPOCH=1567584086 BUILD_VERSION=v4.2.20 BUILD_RELEASE=202002171604
COPY --from=builder /go/src/github.com/openshift/cluster-openshift-controller-manager-operator/cluster-openshift-controller-manager-operator /usr/bin/
COPY manifests /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-openshift-controller-manager-operator" \
        com.redhat.component="ose-cluster-openshift-controller-manager-operator-container" \
        version="v4.2.20" \
        release="202002171604" \
        io.openshift.build.commit.id="377cff19428838c0b2c4fbde762e535471922a92" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-openshift-controller-manager-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-openshift-controller-manager-operator/commit/377cff19428838c0b2c4fbde762e535471922a92"

