Files
homelab-route53-dns/Dockerfile
2019-12-04 07:33:08 +00:00

23 lines
553 B
Docker

FROM registry.lan/alpine:3.10
RUN apk -v --update add \
python \
py-pip \
groff \
less \
mailcap \
jq \
&& \
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 * * * * update-dns.sh > /proc/1/fd/1 2>/proc/1/fd/2\n" > /etc/cron.d/dns-cron
RUN crontab /etc/cron.d/dns-cron
CMD ["cron", "-f"]