mirror of
https://github.com/luzifer-docker/grafana.git
synced 2024-11-09 23:50:01 +00:00
Update debian, improve Dockerfile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
01081bf473
commit
09da04d35f
1 changed files with 15 additions and 8 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,17 +1,24 @@
|
||||||
FROM debian:jessie
|
FROM debian:stable
|
||||||
|
|
||||||
ENV GRAFANA_VERSION 5.1.0
|
ENV GRAFANA_VERSION 5.1.0
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN set -ex \
|
||||||
&& apt-get install -y unzip libfontconfig wget adduser openssl ca-certificates \
|
&& apt-get update \
|
||||||
&& wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_${GRAFANA_VERSION}_amd64.deb \
|
&& apt-get install --no-install-recommends -y \
|
||||||
&& dpkg -i grafana_${GRAFANA_VERSION}_amd64.deb
|
adduser \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
libfontconfig \
|
||||||
|
openssl \
|
||||||
|
unzip \
|
||||||
|
&& curl -sSfLo /tmp/grafana.deb "https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_${GRAFANA_VERSION}_amd64.deb" \
|
||||||
|
&& dpkg -i /tmp/grafana.deb \
|
||||||
|
&& rm /tmp/grafana.deb \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
VOLUME ["/var/lib/grafana"]
|
VOLUME ["/var/lib/grafana", "/var/log/grafana", "/etc/grafana"]
|
||||||
VOLUME ["/var/log/grafana"]
|
|
||||||
VOLUME ["/etc/grafana"]
|
|
||||||
|
|
||||||
WORKDIR /usr/share/grafana
|
WORKDIR /usr/share/grafana
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue