Update debian, improve Dockerfile

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-05-08 13:01:08 +02:00
parent 01081bf473
commit 09da04d35f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,17 +1,24 @@
FROM debian:jessie
FROM debian:stable
ENV GRAFANA_VERSION 5.1.0
RUN apt-get update \
&& apt-get install -y unzip libfontconfig wget adduser openssl ca-certificates \
&& wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_${GRAFANA_VERSION}_amd64.deb \
&& dpkg -i grafana_${GRAFANA_VERSION}_amd64.deb
RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
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
VOLUME ["/var/lib/grafana"]
VOLUME ["/var/log/grafana"]
VOLUME ["/etc/grafana"]
VOLUME ["/var/lib/grafana", "/var/log/grafana", "/etc/grafana"]
WORKDIR /usr/share/grafana