-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
executable file
·32 lines (27 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM armhf/debian:jessie
ARG GRAFANA_VERSION
ENV GRAFANA_VERSION ${GRAFANA_VERSION:-5.0.0}
ENV GRAFANA_FILE=grafana_${GRAFANA_VERSION}_armhf.deb
ENV GRAFANA_URL=https://github.com/fg2it/grafana-on-raspberry/releases/download/v${GRAFANA_VERSION}/${GRAFANA_FILE}
RUN set -xe \
&& apt-get update \
&& apt-get install -y ca-certificates \
libfontconfig \
wget \
&& wget ${GRAFANA_URL} \
&& dpkg -i ${GRAFANA_FILE} \
&& apt-get purge --auto-remove -y wget \
&& rm -rf ${GRAFANA_FILE} \
/var/lib/apt/lists/*
ENV GF_PATHS_DATA=/var/lib/grafana
ENV GF_PATHS_LOGS=/var/log/grafana
ENV GF_PATHS_PLUGINS=/var/lib/grafana/plugins
VOLUME /etc/grafana \
$GF_PATHS_DATA \
$GF_PATHS_LOGS
EXPOSE 3000
CMD grafana-server --homepath=/usr/share/grafana \
--config=/etc/grafana/grafana.ini \
cfg:default.paths.data="$GF_PATHS_DATA" \
cfg:default.paths.logs="$GF_PATHS_LOGS" \
cfg:default.paths.plugins="$GF_PATHS_PLUGINS"