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-8394330 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=8394330db4add93d9a5601caf5da22e87c7aa3c8 SOURCE_GIT_TAG=8394330d SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_DATE_EPOCH=1558005067 OS_GIT_COMMIT=8394330 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
WORKDIR /go/src/github.com/openshift/cluster-machine-approver
COPY . .
RUN make build

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-8394330 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=8394330db4add93d9a5601caf5da22e87c7aa3c8 SOURCE_GIT_TAG=8394330d SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_DATE_EPOCH=1558005067 OS_GIT_COMMIT=8394330 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
COPY --from=builder /go/src/github.com/openshift/cluster-machine-approver/machine-approver /usr/bin/
COPY manifests /manifests
ENTRYPOINT ["/usr/bin/machine-approver"]

LABEL \
        io.k8s.display-name="OpenShift cluster-machine-approver" \
        io.k8s.description="This is an OpenShift component for approving new machines" \
        com.redhat.component="ose-cluster-machine-approver-container" \
        maintainer="OpenShift Auth Team <aos-auth-team@redhat.com>" \
        name="openshift/ose-cluster-machine-approver" \
        version="v4.1.41" \
        io.openshift.tags="openshift" \
        io.openshift.release.operator="true" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        release="202004130646" \
        io.openshift.build.commit.id="8394330db4add93d9a5601caf5da22e87c7aa3c8" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-machine-approver" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-machine-approver/commit/8394330db4add93d9a5601caf5da22e87c7aa3c8"

