1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/grafana/Dockerfile

31 lines
781 B
Docker
Raw Normal View History

2015-08-15 20:35:36 +02:00
#
# Dockerfile for grafana
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
2015-12-04 14:04:12 +02:00
ENV GRAFANA_VER 2.5.0
ENV GRAFANA_FILE grafana_${GRAFANA_VER}_amd64.deb
ENV GRAFANA_URL https://grafanarel.s3.amazonaws.com/builds/${GRAFANA_FILE}
2015-08-15 20:35:36 +02:00
RUN apt-get update \
&& apt-get install -y libfontconfig wget \
2015-12-04 14:04:12 +02:00
&& wget ${GRAFANA_URL} \
&& dpkg -i ${GRAFANA_FILE} \
2015-08-15 20:35:36 +02:00
&& apt-get purge --auto-remove -y wget \
2015-12-04 14:04:12 +02:00
&& rm -rf ${GRAFANA_FILE} \
2015-08-15 20:35:36 +02:00
/var/lib/apt/lists/*
ENV GRAFANA_HOME=/usr/share/grafana
ENV CONF_FILE=/etc/grafana/grafana.ini
ENV DATA_DIR=/var/lib/grafana
ENV LOG_DIR=/var/log/grafana
WORKDIR $GRAFANA_HOME
VOLUME $DATA_DIR $LOG_DIR
EXPOSE 3000
CMD grafana-server --config=$CONF_FILE cfg:default.paths.data=$DATA_DIR cfg:default.paths.logs=$LOG_DIR