-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·26 lines (22 loc) · 992 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
FROM debian:stretch
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q -y update \
&& apt-get -q -y --no-install-recommends install ddclient \
libio-socket-ssl-perl \
ca-certificates \
rsyslog \
runit \
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
\
&& sed -i 's/="true/="false/g' /etc/default/ddclient \
&& sed -i 's/run_daemon="false"/run_daemon="true"/g' /etc/default/ddclient \
\
&& head -n $(grep -n RULES /etc/rsyslog.conf | cut -d':' -f1) /etc/rsyslog.conf > /etc/rsyslog.conf.new \
&& mv /etc/rsyslog.conf.new /etc/rsyslog.conf \
&& echo '*.* /dev/stdout' >> /etc/rsyslog.conf \
&& sed -i 's/.*imklog.*//g' /etc/rsyslog.conf \
\
&& rm -rf /etc/ddclient.conf
COPY scripts /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]