forked from openshift/cluster-monitoring-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (18 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# When bumping the Go version, don't forget to update the configuration of the
# CI jobs in openshift/release.
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.7 AS builder
WORKDIR /go/src/github.com/openshift/cluster-monitoring-operator
COPY . .
ENV GOFLAGS="-mod=vendor"
RUN make operator-no-deps
FROM registry.svc.ci.openshift.org/ocp/4.7:base
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
USER 1001
ENTRYPOINT ["/usr/bin/operator"]