mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-10 04:07:04 +02:00
34 lines
890 B
Docker
34 lines
890 B
Docker
#
|
|
# Dockerfile for grafana
|
|
#
|
|
|
|
FROM debian:jessie
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
ENV GRAFANA_VERSION=2.6.0 \
|
|
GRAFANA_FILE=grafana_${GRAFANA_VERSION}_amd64.deb \
|
|
GRAFANA_URL=https://grafanarel.s3.amazonaws.com/builds/${GRAFANA_FILE}
|
|
|
|
RUN set -xe \
|
|
&& apt-get update \
|
|
&& apt-get install -y libfontconfig wget \
|
|
&& wget ${GRAFANA_URL} \
|
|
&& dpkg -i ${GRAFANA_FILE} \
|
|
&& apt-get purge --auto-remove -y wget \
|
|
&& rm -rf ${GRAFANA_FILE} \
|
|
/var/lib/apt/lists/*
|
|
|
|
ENV GF_PATHS_DATA=/var/lib/grafana \
|
|
GF_PATHS_LOGS=/var/log/grafana
|
|
|
|
VOLUME /etc/grafana \
|
|
$GF_PATHS_DATA \
|
|
$GF_PATHS_LOGS
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD grafana-server --homepath=/usr/share/grafana \
|
|
--config=/etc/grafana/grafana.ini \
|
|
cfg:default.paths.data="$GF_PATHS_DATA" \
|
|
cfg:default.paths.logs="$GF_PATHS_LOGS"
|