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
|
COPY nsupdate.sh /usr/local/bin/nsupdate.sh
|
||||||
RUN chmod +x /usr/local/bin/nsupdate.sh
|
RUN chmod +x /usr/local/bin/nsupdate.sh
|
||||||
|
|
||||||
COPY docker/entrypoint.sh /entrypoint.sh
|
## Setup cron job
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN echo "${SCHEDULE} sh /usr/local/bin/nsupdate.sh" >> /etc/crontabs/root
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
CMD ["cron","-f", "-l", "2"]
|
## Start crond
|
||||||
|
CMD [ "crond", "-l", "2", "-f" ]
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
VOLUME /log
|
VOLUME /log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user