Prometheus Dockerfile

Jmnote (토론 | 기여)님의 2025년 7월 28일 (월) 15:10 판 (→‎같이 보기)

1 개요

Prometheus Dockerfile
ADD file:ee9bb8755ccbdd689b434d9b4ac7518e972699604ecda33e4ddc2a15d2831443 in / 

MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>

COPY /rootfs / # buildkit

LABEL maintainer=The Prometheus Authors <prometheus-developers@googlegroups.com>
LABEL org.opencontainers.image.source=https://github.com/prometheus/prometheus

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 ARCH=amd64 OS=linux /bin/sh -c "chown -R nobody:nobody /etc/prometheus /prometheus && chmod g+w /prometheus"

USER nobody
EXPOSE 9090/tcp
VOLUME [/prometheus]
ENTRYPOINT ["/bin/prometheus"]
CMD ["--config.file=/etc/prometheus/prometheus.yml" "--storage.tsdb.path=/prometheus"]

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}