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-0525440 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=052544096eb3481e172ae84f263de1e620b55e52 SOURCE_GIT_TAG=05254409 SOURCE_GIT_URL=https://github.com/openshift/cluster-node-tuning-operator SOURCE_DATE_EPOCH=1574332266 OS_GIT_COMMIT=0525440 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
WORKDIR /go/src/github.com/openshift/cluster-node-tuning-operator
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-0525440 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=052544096eb3481e172ae84f263de1e620b55e52 SOURCE_GIT_TAG=05254409 SOURCE_GIT_URL=https://github.com/openshift/cluster-node-tuning-operator SOURCE_DATE_EPOCH=1574332266 OS_GIT_COMMIT=0525440 BUILD_VERSION=v4.1.41 BUILD_RELEASE=202004130646
COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/cluster-node-tuning-operator /usr/bin/
COPY manifests /manifests
RUN useradd cluster-node-tuning-operator
USER cluster-node-tuning-operator
ENTRYPOINT ["/usr/bin/cluster-node-tuning-operator"]

LABEL \
        io.k8s.display-name="OpenShift cluster-node-tuning-operator" \
        io.k8s.description="This is a component of OpenShift and manages the lifecycle of node-level tuning." \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-node-tuning-operator" \
        com.redhat.component="cluster-node-tuning-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        version="v4.1.41" \
        release="202004130646" \
        io.openshift.build.commit.id="052544096eb3481e172ae84f263de1e620b55e52" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-node-tuning-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-node-tuning-operator/commit/052544096eb3481e172ae84f263de1e620b55e52"

