-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (16 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:jessie
MAINTAINER Rudi Kramer <[email protected]>
RUN apt-get update && apt-get install -y curl python supervisor golang git ca-certificates --no-install-recommends && \
rm -r /var/lib/apt/lists/* && \
curl http://repo.varnish-cache.org/GPG-key.txt | apt-key add -- && \
echo "deb http://repo.varnish-cache.org/debian/ jessie varnish-4.1" >> /etc/apt/sources.list.d/varnish-cache.list && \
apt-get update && apt-get install -y varnish --no-install-recommends && \
rm -r /var/lib/apt/lists/*
RUN useradd -ms /bin/bash prometheus_varnish_exporter && \
export GOPATH=/home/prometheus_varnish_exporter/go && \
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin && \
go get github.com/jonnenauha/prometheus_varnish_exporter
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD varnish /etc/default/varnish
EXPOSE 9131
CMD ["/usr/bin/supervisord"]