-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (29 loc) · 848 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
FROM debian:buster-slim
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir /usr/share/man/man1/
RUN mkdir -p /opt/scripts
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
nano \
procps \
python-setuptools \
collectd \
python2.7 \
python-pip \
python-lxml \
libpython2.7 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install fritzconnection
RUN pip install requests
RUN pip install fritzcollectd
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
COPY collectd.conf /etc/collectd
COPY collectd.conf.d/fritzcollectd.conf /etc/collectd/collectd.conf.d
COPY startup.sh /opt/scripts
RUN chmod 777 /opt/scripts/ \
&& chmod +x /opt/scripts/startup.sh
# Run startup-script
ENTRYPOINT ["/bin/bash", "-c", "/opt/scripts/startup.sh"]