-
Notifications
You must be signed in to change notification settings - Fork 365
/
Dockerfile
22 lines (19 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# When bumping the Go version, don't forget to update the configuration of the
# CI jobs in openshift/release.
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/cluster-monitoring-operator
COPY . .
ENV GOFLAGS="-mod=vendor"
RUN make operator-no-deps
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
LABEL io.k8s.display-name="OpenShift cluster-monitoring-operator" \
io.k8s.description="This is a component of OpenShift and manages the lifecycle of the Prometheus based cluster monitoring stack." \
io.openshift.tags="openshift" \
io.openshift.release.operator=true \
summary="This is a component of OpenShift and manages the lifecycle of the Prometheus based cluster monitoring stack." \
maintainer="OpenShift Monitoring Team <[email protected]>"
COPY --from=builder /go/src/github.com/openshift/cluster-monitoring-operator/operator /usr/bin/
COPY manifests /manifests
COPY assets /assets
USER 1001
ENTRYPOINT ["/usr/bin/operator"]