forked from prometheus-operator/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile.config-reloader.ocp
More file actions
19 lines (17 loc) · 949 Bytes
/
Dockerfile.config-reloader.ocp
File metadata and controls
19 lines (17 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Dockerfile used by OSBS and by prow CI.
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
WORKDIR /go/src/github.com/coreos/prometheus-operator
COPY . .
ENV GO111MODULE=on
ENV GOFLAGS="-mod=vendor"
RUN OS=$(go env GOOS) ARCH=$(go env GOARCH) make prometheus-config-reloader-no-deps
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
LABEL io.k8s.display-name="Prometheus config reloader" \
io.k8s.description="This component reloads a Prometheus server in a controlled and configurable way." \
io.openshift.tags="prometheus" \
summary="This component reloads a Prometheus server in a controlled and configurable way." \
maintainer="OpenShift Monitoring Team <team-monitoring@redhat.com>"
COPY --from=builder /go/src/github.com/coreos/prometheus-operator/prometheus-config-reloader /usr/bin/
# doesn't require a root user.
USER 1001
ENTRYPOINT ["/usr/bin/prometheus-config-reloader"]