Dockerfile

This commit is contained in:
Christian Busch 2023-01-27 17:10:23 +01:00
parent 689b3693d7
commit 8bf15e11da

View File

@ -21,10 +21,11 @@ ADD https://api.github.com/repos/chrisb86/nsupdate/git/refs/heads/main /.git-has
COPY nsupdate.sh /usr/local/bin/nsupdate.sh
RUN chmod +x /usr/local/bin/nsupdate.sh
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["cron","-f", "-l", "2"]
## Setup cron job
RUN echo "${SCHEDULE} sh /usr/local/bin/nsupdate.sh" >> /etc/crontabs/root
## Start crond
CMD [ "crond", "-l", "2", "-f" ]
VOLUME /config
VOLUME /log