2019-04-15 08:27:00 -04:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
|
ARG OS="linux"
|
|
|
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
2018-08-26 22:43:53 -04:00
|
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
2025-10-15 03:34:06 -04:00
|
|
|
LABEL org.opencontainers.image.authors="The Prometheus Authors" \
|
|
|
|
|
org.opencontainers.image.vendor="Prometheus" \
|
|
|
|
|
org.opencontainers.image.title="Prometheus" \
|
|
|
|
|
org.opencontainers.image.description="The Prometheus monitoring system and time series database" \
|
|
|
|
|
org.opencontainers.image.source="https://github.com/prometheus/prometheus" \
|
|
|
|
|
org.opencontainers.image.url="https://github.com/prometheus/prometheus" \
|
|
|
|
|
org.opencontainers.image.documentation="https://prometheus.io/docs" \
|
2026-01-16 09:14:15 -05:00
|
|
|
org.opencontainers.image.licenses="Apache License 2.0" \
|
|
|
|
|
io.prometheus.image.variant="busybox"
|
2015-01-12 09:15:26 -05:00
|
|
|
|
2019-04-15 08:27:00 -04:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
|
ARG OS="linux"
|
|
|
|
|
COPY .build/${OS}-${ARCH}/prometheus /bin/prometheus
|
|
|
|
|
COPY .build/${OS}-${ARCH}/promtool /bin/promtool
|
2015-12-21 12:09:38 -05:00
|
|
|
COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml
|
2019-10-17 08:38:09 -04:00
|
|
|
COPY LICENSE /LICENSE
|
|
|
|
|
COPY NOTICE /NOTICE
|
|
|
|
|
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2
|
2016-07-29 09:00:47 -04:00
|
|
|
|
2021-09-30 05:13:44 -04:00
|
|
|
WORKDIR /prometheus
|
2025-03-07 05:33:04 -05:00
|
|
|
RUN chown -R nobody:nobody /etc/prometheus /prometheus && chmod g+w /prometheus
|
2015-01-12 09:15:26 -05:00
|
|
|
|
2017-06-19 05:33:39 -04:00
|
|
|
USER nobody
|
2014-02-06 11:29:37 -05:00
|
|
|
EXPOSE 9090
|
2015-04-24 10:12:31 -04:00
|
|
|
VOLUME [ "/prometheus" ]
|
2018-12-10 03:19:01 -05:00
|
|
|
ENTRYPOINT [ "/bin/prometheus" ]
|
2019-01-21 06:57:16 -05:00
|
|
|
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
|
2024-09-02 07:59:29 -04:00
|
|
|
"--storage.tsdb.path=/prometheus" ]
|