FROM openshift/golang-builder:1.10 AS builder
ENV SOURCE_GIT_COMMIT=8394330db4add93d9a5601caf5da22e87c7aa3c8 SOURCE_DATE_EPOCH=1558005067 BUILD_VERSION=v4.1.22 SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_GIT_TAG=8394330 BUILD_RELEASE=201910291109
WORKDIR /go/src/github.com/openshift/cluster-machine-approver
COPY . .
RUN make build

FROM openshift/ose-base:v4.1.22.20191029.110950
ENV SOURCE_GIT_COMMIT=8394330db4add93d9a5601caf5da22e87c7aa3c8 SOURCE_DATE_EPOCH=1558005067 BUILD_VERSION=v4.1.22 SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_GIT_TAG=8394330 BUILD_RELEASE=201910291109
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.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" \
        io.k8s.display-name="OpenShift cluster-machine-approver" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-machine-approver" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-machine-approver/commit/8394330db4add93d9a5601caf5da22e87c7aa3c8" \
        version="v4.1.22" \
        io.openshift.build.commit.id="8394330db4add93d9a5601caf5da22e87c7aa3c8" \
        release="201910291109" \
        io.openshift.tags="openshift"

