This repository has been archived on 2024-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
freedns_updater/Dockerfile

16 lines
417 B
Docker

FROM alpine:latest
RUN apk add --no-cache curl bash
# Add the scripts
COPY update-freedns.sh replace-crontab.sh /bin/
# Make the scripts runnable
RUN chmod +x /bin/update-freedns.sh && \
chmod +x /bin/replace-crontab.sh
# Make the key file directory
RUN mkdir /var/local/dns_updater
# First run the dns_update script and set cron running
CMD /bin/replace-crontab.sh && /bin/update-freedns.sh && crond -d 6 -f