| BusyBox 1.37.0 (uclibc), Buildroot 2025.08.3, Debian 13 |
| MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com> |
| COPY /rootfs / # buildkit |
| LABEL maintainer=The Prometheus Authors <prometheus-developers@googlegroups.com> |
| 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 org.opencontainers.image.licenses=Apache License 2.0 |
| ARG ARCH=amd64 |
| ARG OS=linux |
| COPY .build/linux-amd64/prometheus /bin/prometheus # buildkit |
| COPY .build/linux-amd64/promtool /bin/promtool # buildkit |
| COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml # buildkit |
| COPY LICENSE /LICENSE # buildkit |
| COPY NOTICE /NOTICE # buildkit |
| COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2 # buildkit |
| WORKDIR /prometheus |
| RUN |2 ARCH=amd64 OS=linux /bin/sh -c chown -R nobody:nobody /etc/prometheus /prometheus && chmod g+w /prometheus # buildkit |
| USER nobody |
| EXPOSE map[9090/tcp:{}] |
| VOLUME [/prometheus] |
| ENTRYPOINT ["/bin/prometheus"] |
| CMD ["--config.file=/etc/prometheus/prometheus.yml" "--storage.tsdb.path=/prometheus"] |
| ADD prometheus.yml /etc/prometheus/ # buildkit |