diff --git a/Dockerfile b/Dockerfile index b64b574fc..84509bca6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ -# Cannot use busybox image since Prometheus depends on libc. -FROM base - +FROM ubuntu:13.10 MAINTAINER Prometheus Team -EXPOSE 9090 -ENTRYPOINT ["/opt/prometheus/run_prometheus.sh"] -ADD .build/package/ /opt/prometheus +EXPOSE 9090 +VOLUME [ "/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