FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=272af4c81836ffce48e9476037c23d24bf5a3be0 SOURCE_DATE_EPOCH=1575311634 BUILD_VERSION=v4.1.29 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-controller-manager-operator SOURCE_GIT_TAG=272af4c8 BUILD_RELEASE=201912230303
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.29.20191223.030354
ENV SOURCE_GIT_COMMIT=272af4c81836ffce48e9476037c23d24bf5a3be0 SOURCE_DATE_EPOCH=1575311634 BUILD_VERSION=v4.1.29 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-controller-manager-operator SOURCE_GIT_TAG=272af4c8 BUILD_RELEASE=201912230303
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 \
        com.redhat.component="ose-cluster-kube-controller-manager-operator-container" \
        name="openshift/ose-cluster-kube-controller-manager-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-kube-controller-manager-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-kube-controller-manager-operator/commit/272af4c81836ffce48e9476037c23d24bf5a3be0" \
        version="v4.1.29" \
        io.openshift.build.commit.id="272af4c81836ffce48e9476037c23d24bf5a3be0" \
        release="201912230303"

