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 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