FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=a226e0fc46cabee7186de69e7409020c861e454c SOURCE_GIT_TAG=a226e0f SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_DATE_EPOCH=1576769690 BUILD_VERSION=v4.2.20 BUILD_RELEASE=202002171604
WORKDIR /go/src/github.com/openshift/cluster-machine-approver
COPY . .
RUN make build

FROM openshift/ose-base:v4.2.20.20200217.160430
ENV SOURCE_GIT_COMMIT=a226e0fc46cabee7186de69e7409020c861e454c SOURCE_GIT_TAG=a226e0f SOURCE_GIT_URL=https://github.com/openshift/cluster-machine-approver SOURCE_DATE_EPOCH=1576769690 BUILD_VERSION=v4.2.20 BUILD_RELEASE=202002171604
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.2.20" \
        io.openshift.tags="openshift" \
        io.openshift.release.operator="true" \
        release="202002171604" \
        io.openshift.build.commit.id="a226e0fc46cabee7186de69e7409020c861e454c" \
        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/a226e0fc46cabee7186de69e7409020c861e454c"

