mirror of
https://github.com/wahyd4/tig-stack.git
synced 2026-08-09 05:06:03 +10:00
20 lines
780 B
Docker
20 lines
780 B
Docker
FROM grafana/grafana:latest
|
|
MAINTAINER Mateusz Trojak <mateusz.trojak@gmail.com>
|
|
LABEL version="1.2"
|
|
LABEL description="Grafana docker image with custom setup"
|
|
|
|
USER root
|
|
|
|
RUN apt-get -q update &&\
|
|
DEBIAN_FRONTEND="noninteractive" apt-get -q upgrade -y -o Dpkg::Options::="--force-confnew" --no-install-recommends &&\
|
|
DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends curl gosu &&\
|
|
apt-get -q autoremove &&\
|
|
apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin
|
|
|
|
ADD run.sh /run.sh
|
|
RUN chmod +x /run.sh
|
|
RUN mkdir -p /opt/grafana/dashboards
|
|
ADD ["*.json", "/opt/grafana/dashboards/"]
|
|
ADD ["default-dashboard.yaml", "/etc/grafana/provisioning/dashboards/"]
|
|
CMD ["/run.sh"]
|