2015-11-01 14:02:35 +00:00
|
|
|
FROM debian:jessie
|
|
|
|
|
2017-09-14 09:50:31 +00:00
|
|
|
ENV GRAFANA_VERSION 4.5.0
|
2015-11-01 14:02:35 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y unzip libfontconfig wget adduser openssl ca-certificates \
|
2017-07-07 05:24:04 +00:00
|
|
|
&& wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_${GRAFANA_VERSION}_amd64.deb \
|
2015-11-01 14:02:35 +00:00
|
|
|
&& 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", \
|
2016-05-11 13:34:14 +00:00
|
|
|
"cfg:default.paths.logs=/var/log/grafana", \
|
|
|
|
"cfg:default.paths.plugins=/var/lib/grafana/plugins" \
|
2015-11-01 14:02:35 +00:00
|
|
|
]
|