ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="The Prometheus Server"
ARG ARCH="amd64"
ARG OS="linux"
COPY test1/prometheus /bin/prometheus
COPY test1/promtool /bin/promtool
COPY test1/prometheus.yml /etc/prometheus/prometheus.yml
COPY test1/console_libraries/ /usr/share/prometheus/console_libraries/
COPY test1/consoles/ /usr/share/prometheus/consoles/
COPY test1/LICENSE /LICENSE
COPY test1/NOTICE /NOTICE
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
RUN mkdir -p /prometheus && chown -R root:root etc/prometheus /prometheus
USER root
EXPOSE 9090
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus", \
"--web.console.libraries=/usr/share/prometheus/console_libraries", \
"--web.console.templates=/usr/share/prometheus/consoles" ]
Content type
Image
Digest
Size
54.8 MB
Last updated
over 6 years ago
docker pull himanshutak8/prometheus