forked from openshift-kni/numaresources-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (16 loc) · 829 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM docker.io/golang:1.23 AS builder
WORKDIR /go/src/github.com/openshift-kni/numaresources-operator
COPY . .
# Build
RUN make binary-all
FROM registry.access.redhat.com/ubi9/ubi-minimal
COPY --from=builder /go/src/github.com/openshift-kni/numaresources-operator/bin/manager /bin/numaresources-operator
# bundle the operand, and use a backward compatible name for RTE
COPY --from=builder /go/src/github.com/openshift-kni/numaresources-operator/bin/exporter /bin/resource-topology-exporter
COPY --from=builder /go/src/github.com/openshift-kni/numaresources-operator/bin/buildinfo.json /usr/local/share
RUN mkdir /etc/resource-topology-exporter/ && \
touch /etc/resource-topology-exporter/config.yaml
RUN microdnf install -y hwdata && \
microdnf clean -y all
USER 65532:65532
ENTRYPOINT ["/bin/numaresources-operator"]