Prometheus Dockerfile

1 개요[ | ]

Prometheus Dockerfile
FROM quay.io/prometheus/busybox-linux-amd64:latest

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 }}