Dockerfile
This commit is contained in:
parent
689b3693d7
commit
8bf15e11da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user