mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Use ENTRYPOINT and CMD
This commit is contained in:
parent
ec4182c8c7
commit
88019e852a
|
@ -4,7 +4,8 @@ EXPOSE 9090
|
||||||
VOLUME [ "/prometheus" ]
|
VOLUME [ "/prometheus" ]
|
||||||
WORKDIR /prometheus
|
WORKDIR /prometheus
|
||||||
|
|
||||||
ENTRYPOINT [ "/prometheus-src/prometheus", "-config.file=/prometheus.conf" ]
|
ENTRYPOINT [ "/prometheus-src/prometheus" ]
|
||||||
|
CMD [ "-config.file=/prometheus.conf" ]
|
||||||
RUN apt-get update && apt-get install -yq make git curl sudo mercurial vim-common
|
RUN apt-get update && apt-get install -yq make git curl sudo mercurial vim-common
|
||||||
ADD . /prometheus-src
|
ADD . /prometheus-src
|
||||||
RUN cd /prometheus-src && make tools binary
|
RUN cd /prometheus-src && make tools binary
|
||||||
|
|
Loading…
Reference in a new issue