Files
homelab-route53-dns/Dockerfile
Max Regan 9afb7e685f Fix issues with creating orphan processes
By using bash (which plays nicely by reparenting orphan processes)
2019-12-16 04:11:58 +00:00

25 lines
634 B
Docker

FROM registry.lan/alpine:3.10
RUN apk -v --update add \
bash \
python \
py-pip \
groff \
less \
mailcap \
jq \
wget \
&& \
pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic && \
apk -v --purge del py-pip && \
rm /var/cache/apk/*
COPY ./update-dns.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/update-dns.sh
RUN mkdir -p /etc/cron.d/
RUN echo -e "*/10 * * * * /bin/bash update-dns.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/dns-cron
RUN crontab /etc/cron.d/dns-cron
RUN touch /var/log/cron.log
CMD crond && tail -f /var/log/cron.log