FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=76dd23e7b0a9ac32cdaeb0a44031123f465bd391 SOURCE_GIT_TAG=76dd23e7 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-controller-manager-operator SOURCE_DATE_EPOCH=1579567475 BUILD_VERSION=v4.1.34 BUILD_RELEASE=202002031224
WORKDIR /go/src/github.com/openshift/cluster-kube-controller-manager-operator
COPY . .
RUN go build ./cmd/cluster-kube-controller-manager-operator

FROM openshift/ose-base:v4.1.34.20200203.122457
ENV SOURCE_GIT_COMMIT=76dd23e7b0a9ac32cdaeb0a44031123f465bd391 SOURCE_GIT_TAG=76dd23e7 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-controller-manager-operator SOURCE_DATE_EPOCH=1579567475 BUILD_VERSION=v4.1.34 BUILD_RELEASE=202002031224
RUN mkdir -p /usr/share/bootkube/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-kube-controller-manager-operator/bindata/bootkube/* /usr/share/bootkube/manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-kube-controller-manager-operator/cluster-kube-controller-manager-operator /usr/bin/
COPY manifests /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-kube-controller-manager-operator" \
        com.redhat.component="ose-cluster-kube-controller-manager-operator-container" \
        version="v4.1.34" \
        release="202002031224" \
        io.openshift.build.commit.id="76dd23e7b0a9ac32cdaeb0a44031123f465bd391" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-kube-controller-manager-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-kube-controller-manager-operator/commit/76dd23e7b0a9ac32cdaeb0a44031123f465bd391"

