FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=5527cbc07a531a6831282436d03514977e239068 SOURCE_DATE_EPOCH=1562092204 BUILD_VERSION=v4.1.9 SOURCE_GIT_URL=https://github.com/openshift/cluster-version-operator SOURCE_GIT_TAG=v1.0.0-35-g5527cbc BUILD_RELEASE=201907311355
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.1.9.20190731.135530
ENV SOURCE_GIT_COMMIT=5527cbc07a531a6831282436d03514977e239068 SOURCE_DATE_EPOCH=1562092204 BUILD_VERSION=v4.1.9 SOURCE_GIT_URL=https://github.com/openshift/cluster-version-operator SOURCE_GIT_TAG=v1.0.0-35-g5527cbc BUILD_RELEASE=201907311355
COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
COPY install /manifests
COPY bootstrap /bootstrap
ENTRYPOINT ["/usr/bin/cluster-version-operator"]

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

