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

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

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

