FROM openshift/golang-builder:1.10 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-ce1207f OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=ce1207fdbaffcb483cd31c4da2491da2351cba69 SOURCE_GIT_TAG=v0.1.0-574-gce1207fd SOURCE_GIT_URL=https://github.com/openshift/cluster-monitoring-operator SOURCE_DATE_EPOCH=1583518017 OS_GIT_COMMIT=ce1207f BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
WORKDIR /go/src/github.com/openshift/cluster-monitoring-operator
COPY . .
RUN make operator-no-deps

FROM openshift/ose-base:v4.1.41.20200413.064634
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=1 OS_GIT_PATCH=41 OS_GIT_VERSION=4.1.41-202004130646-ce1207f OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=ce1207fdbaffcb483cd31c4da2491da2351cba69 SOURCE_GIT_TAG=v0.1.0-574-gce1207fd SOURCE_GIT_URL=https://github.com/openshift/cluster-monitoring-operator SOURCE_DATE_EPOCH=1583518017 OS_GIT_COMMIT=ce1207f BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
COPY --from=builder /go/src/github.com/openshift/cluster-monitoring-operator/operator /usr/bin/
COPY manifests /manifests
USER 1001
ENTRYPOINT ["/usr/bin/operator"]

LABEL \
        io.k8s.display-name="OpenShift cluster-monitoring-operator" \
        io.k8s.description="This is a component of OpenShift Container Platform and manages the lifecycle of the Prometheus based cluster monitoring stack." \
        io.openshift.tags="openshift" \
        io.openshift.release.operator="true" \
        maintainer="Frederic Branczyk <fbranczy@redhat.com>" \
        License="ASL 2.0" \
        vendor="Red Hat" \
        name="openshift/ose-cluster-monitoring-operator" \
        com.redhat.component="cluster-monitoring-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        version="v4.1.41" \
        release="202004130646" \
        io.openshift.build.commit.id="ce1207fdbaffcb483cd31c4da2491da2351cba69" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-monitoring-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-monitoring-operator/commit/ce1207fdbaffcb483cd31c4da2491da2351cba69"

