-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathDockerfile
22 lines (19 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 as builder
WORKDIR /go/src/github.com/openshift/cluster-kube-descheduler-operator
COPY . .
RUN make build --warn-undefined-variables
FROM registry.redhat.io/rhel9-4-els/rhel-minimal:9.4
COPY --from=builder /go/src/github.com/openshift/cluster-kube-descheduler-operator/cluster-kube-descheduler-operator /usr/bin/
RUN mkdir /licenses
COPY --from=builder /go/src/github.com/openshift/cluster-kube-descheduler-operator/LICENSE /licenses/.
LABEL io.k8s.display-name="Kube Descheduler Operator based on RHEL 9" \
io.k8s.description="This is a component of OpenShift and manages the Descheduler based on RHEL 9" \
com.redhat.component="kube-descheduler-operator-container" \
name="kube-descheduler-operator-rhel-9" \
version="${CI_CONTAINER_VERSION}" \
summary="kube-descheduler-operator" \
io.openshift.expose-services="" \
io.openshift.tags="openshift,kube-descheduler-operator" \
description="kube-descheduler-operator-container" \
maintainer="AOS workloads team, <[email protected]>"
USER nobody