| 1 |
ARG ARCH="amd64" |
| 2 |
ARG OS="linux" |
| 3 |
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest |
| 4 |
LABEL maintainer="The Prometheus Authors <[email protected]>" |
| 5 |
|
| 6 |
ARG ARCH="amd64" |
| 7 |
ARG OS="linux" |
| 8 |
COPY .build/${OS}-${ARCH}/prometheus /bin/prometheus |
| 9 |
COPY .build/${OS}-${ARCH}/promtool /bin/promtool |
| 10 |
COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml |
| 11 |
COPY console_libraries/ /usr/share/prometheus/console_libraries/ |
| 12 |
COPY consoles/ /usr/share/prometheus/consoles/ |
| 13 |
COPY LICENSE /LICENSE |
| 14 |
COPY NOTICE /NOTICE |
| 15 |
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2 |
| 16 |
|
| 17 |
WORKDIR /prometheus |
| 18 |
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ && \ |
| 19 |
chown -R nobody:nobody /etc/prometheus /prometheus |
| 20 |
|
| 21 |
USER nobody |
| 22 |
EXPOSE 9090 |
| 23 |
VOLUME [ "/prometheus" ] |
| 24 |
ENTRYPOINT [ "/bin/prometheus" ] |
| 25 |
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \ |
| 26 |
"--storage.tsdb.path=/prometheus", \ |
| 27 |
"--web.console.libraries=/usr/share/prometheus/console_libraries", \ |
| 28 |
"--web.console.templates=/usr/share/prometheus/consoles" ] |