forked from sstarcher/docker-statsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:8.3
RUN apt-get update && apt-get install -y \
git \
make \
gcc \
automake \
autoconf \
python \
curl \
&& rm -rf /var/lib/apt/lists/*
ENV dockerize_version=0.2.0
RUN \
mkdir -p /usr/local/bin/ &&\
curl -SL https://github.com/jwilder/dockerize/releases/download/v${dockerize_version}/dockerize-linux-amd64-v${dockerize_version}.tar.gz \
| tar xzC /usr/local/bin
RUN mkdir /code && \
cd /code && \
git clone https://github.com/armon/statsite.git &&\
cd /code/statsite &&\
./bootstrap.sh &&\
./configure &&\
make &&\
mv ./src/statsite /bin/statsite &&\
mv /code/statsite/sinks /bin/sinks &&\
chmod +x /bin/sinks/* &&\
rm -rf /code
COPY conf /conf
COPY bin/dual-sink /bin/sinks/dual-sink
COPY bin/start /bin/start
ENTRYPOINT ["/bin/start"]