forked from openshift/kubernetes-metrics-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ocp
19 lines (13 loc) · 880 Bytes
/
Dockerfile.ocp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
COPY . /go/src/sigs.k8s.io/metrics-server
WORKDIR /go/src/sigs.k8s.io/metrics-server
RUN make metrics-server-ocp -f Makefile.ocp
FROM registry.ci.openshift.org/ocp/4.14:base
COPY --from=builder /go/src/sigs.k8s.io/metrics-server/metrics-server /usr/bin/metrics-server
LABEL io.k8s.display-name="OpenShift Metrics Server" \
io.k8s.description="This is a component of OpenShift Container Platform that provides the Kubernetes resource metrics API based on Kubelet metrics" \
io.openshift.tags="openshift" \
summary="This is a component of OpenShift Container Platform that provides the Kubernetes resource metrics API based on Kubelet metrics" \
maintainer="OpenShift Monitoring Team <[email protected]>"
USER 65534
ENTRYPOINT ["/usr/bin/metrics-server"]