FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=beee410fc8780e5613c09fc2690716b711747041 SOURCE_GIT_TAG=v1.0.0-152-gbeee410 SOURCE_GIT_URL=https://github.com/openshift/cluster-version-operator SOURCE_DATE_EPOCH=1577999433 BUILD_VERSION=v4.3.2 BUILD_RELEASE=202002112006
WORKDIR /go/src/github.com/openshift/cluster-version-operator
COPY . .
RUN hack/build-go.sh; \
    mkdir -p /tmp/build; \
    cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

FROM openshift/ose-base:v4.3.2.20200211.200621
ENV SOURCE_GIT_COMMIT=beee410fc8780e5613c09fc2690716b711747041 SOURCE_GIT_TAG=v1.0.0-152-gbeee410 SOURCE_GIT_URL=https://github.com/openshift/cluster-version-operator SOURCE_DATE_EPOCH=1577999433 BUILD_VERSION=v4.3.2 BUILD_RELEASE=202002112006
COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
COPY install /manifests
COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml /manifests/
COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml /manifests/
COPY bootstrap /bootstrap
ENTRYPOINT ["/usr/bin/cluster-version-operator"]

LABEL \
        name="openshift/ose-cluster-version-operator" \
        com.redhat.component="cluster-version-operator-container" \
        version="v4.3.2" \
        release="202002112006" \
        io.openshift.build.commit.id="beee410fc8780e5613c09fc2690716b711747041" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-version-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-version-operator/commit/beee410fc8780e5613c09fc2690716b711747041"

