FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=657c2cf7c7a304c2fc5996ba15c6cab9dbfbcd96 SOURCE_DATE_EPOCH=1557417502 BUILD_VERSION=v4.1.8 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-controller-manager-operator SOURCE_GIT_TAG=657c2cf7 BUILD_RELEASE=201907241243
WORKDIR /go/src/github.com/openshift/cluster-openshift-controller-manager-operator
COPY . .
RUN go build ./cmd/cluster-openshift-controller-manager-operator

FROM openshift/ose-base:v4.1.8.20190724.124343
ENV SOURCE_GIT_COMMIT=657c2cf7c7a304c2fc5996ba15c6cab9dbfbcd96 SOURCE_DATE_EPOCH=1557417502 BUILD_VERSION=v4.1.8 SOURCE_GIT_URL=https://github.com/openshift/cluster-openshift-controller-manager-operator SOURCE_GIT_TAG=657c2cf7 BUILD_RELEASE=201907241243
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/657c2cf7c7a304c2fc5996ba15c6cab9dbfbcd96" \
        version="v4.1.8" \
        io.openshift.build.commit.id="657c2cf7c7a304c2fc5996ba15c6cab9dbfbcd96" \
        release="201907241243"

