mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Make Dockerfile build prometheus in container
This way the binary will be built in a clear environment and prometheus can be added to the docker index. Change-Id: I417fb90adf2503c990a96f4bad370b09b102e0b9
This commit is contained in:
parent
59febe771a
commit
5e8026779f
15
Dockerfile
15
Dockerfile
|
@ -1,7 +1,10 @@
|
||||||
# Cannot use busybox image since Prometheus depends on libc.
|
FROM ubuntu:13.10
|
||||||
FROM base
|
|
||||||
|
|
||||||
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
|
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
ENTRYPOINT ["/opt/prometheus/run_prometheus.sh"]
|
VOLUME [ "/prometheus" ]
|
||||||
ADD .build/package/ /opt/prometheus
|
WORKDIR /prometheus
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/prometheus-src/.build/package/run_prometheus.sh" ]
|
||||||
|
RUN apt-get update && apt-get install -yq make git curl sudo mercurial
|
||||||
|
ADD . /prometheus-src
|
||||||
|
RUN cd /prometheus-src && make binary
|
||||||
|
|
Loading…
Reference in a new issue