mirror of
https://github.com/luzifer-docker/grafana.git
synced 2024-12-29 22:31:16 +00:00
33 lines
804 B
Docker
33 lines
804 B
Docker
FROM debian:stable
|
|
|
|
ENV GRAFANA_VERSION 11.3.1
|
|
|
|
RUN set -ex \
|
|
&& apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
adduser \
|
|
ca-certificates \
|
|
curl \
|
|
libfontconfig \
|
|
musl \
|
|
openssl \
|
|
unzip \
|
|
&& curl -sSfLo /tmp/grafana.deb "https://dl.grafana.com/oss/release/grafana_${GRAFANA_VERSION}_amd64.deb" \
|
|
&& dpkg -i /tmp/grafana.deb \
|
|
&& rm /tmp/grafana.deb \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 3000
|
|
|
|
VOLUME ["/var/lib/grafana", "/var/log/grafana", "/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" \
|
|
]
|