grafana/Dockerfile

26 lines
673 B
Text
Raw Normal View History

2015-11-01 14:02:35 +00:00
FROM debian:jessie
2016-10-08 17:19:26 +00:00
ENV GRAFANA_VERSION 3.1.1-1470047149
2015-11-01 14:02:35 +00:00
RUN apt-get update \
&& apt-get install -y unzip libfontconfig wget adduser openssl ca-certificates \
&& wget https://grafanarel.s3.amazonaws.com/builds/grafana_${GRAFANA_VERSION}_amd64.deb \
&& dpkg -i grafana_${GRAFANA_VERSION}_amd64.deb
EXPOSE 3000
VOLUME ["/var/lib/grafana"]
VOLUME ["/var/log/grafana"]
VOLUME ["/etc/grafana"]
WORKDIR /usr/share/grafana
ENTRYPOINT ["/usr/sbin/grafana-server"]
CMD [ \
"--config", \
"/etc/grafana/grafana.ini", \
"cfg:default.paths.data=/var/lib/grafana", \
"cfg:default.paths.logs=/var/log/grafana", \
"cfg:default.paths.plugins=/var/lib/grafana/plugins" \
2015-11-01 14:02:35 +00:00
]