2018-05-08 11:01:08 +00:00
|
|
|
FROM debian:stable
|
2015-11-01 14:02:35 +00:00
|
|
|
|
2023-07-12 05:02:33 +00:00
|
|
|
ENV GRAFANA_VERSION 10.0.2
|
2015-11-01 14:02:35 +00:00
|
|
|
|
2018-05-08 11:01:08 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install --no-install-recommends -y \
|
|
|
|
adduser \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
libfontconfig \
|
|
|
|
openssl \
|
|
|
|
unzip \
|
2019-10-13 16:26:06 +00:00
|
|
|
&& curl -sSfLo /tmp/grafana.deb "https://dl.grafana.com/oss/release/grafana_${GRAFANA_VERSION}_amd64.deb" \
|
2018-05-08 11:01:08 +00:00
|
|
|
&& dpkg -i /tmp/grafana.deb \
|
|
|
|
&& rm /tmp/grafana.deb \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-11-01 14:02:35 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2018-05-08 11:01:08 +00:00
|
|
|
VOLUME ["/var/lib/grafana", "/var/log/grafana", "/etc/grafana"]
|
2015-11-01 14:02:35 +00:00
|
|
|
|
|
|
|
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
|
|
|
]
|