forked from openshift/cluster-nfd-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 950 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13 AS builder
WORKDIR /go/src/github.com/openshift/cluster-nfd-operator
COPY . .
RUN make build
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
ARG CSV=4.4
COPY --from=builder /go/src/github.com/openshift/cluster-nfd-operator/cluster-nfd-operator /usr/bin/
RUN mkdir -p /opt/nfd
COPY assets /opt/nfd
#ADD controller-manifests /manifests
COPY manifests/olm-catalog/$CSV /manifests/$CSV
COPY manifests/olm-catalog/nfd.package.yaml /manifests/
RUN useradd cluster-nfd-operator
USER cluster-nfd-operator
ENTRYPOINT ["/usr/bin/cluster-nfd-operator"]
LABEL io.k8s.display-name="OpenShift cluster-nfd-operator" \
io.k8s.description="This is a component of OpenShift and manages the node feature discovery." \
io.openshift.tags="openshift" \
com.redhat.delivery.appregistry=true \
maintainer="ATS Auto Tuning Scalability <[email protected]>"