1FROM quay.io/prometheus/busybox:latest 2LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>" 3 4COPY prometheus /bin/prometheus 5COPY promtool /bin/promtool 6COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml 7COPY console_libraries/ /usr/share/prometheus/console_libraries/ 8COPY consoles/ /usr/share/prometheus/consoles/ 9 10RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ && \ 11 mkdir -p /prometheus && \ 12 chown -R nobody:nogroup etc/prometheus /prometheus && \ 13 ln -s /prometheus /etc/prometheus/data 14 15USER nobody 16EXPOSE 9090 17VOLUME [ "/prometheus" ] 18WORKDIR /etc/prometheus 19ENTRYPOINT [ "/bin/prometheus" ] 20