mirror of
https://github.com/luzifer-docker/grafana.git
synced 2024-12-20 18:11:15 +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
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue