Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisb86 committed Jan 27, 2023
1 parent 689b369 commit 8bf15e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8bf15e1

Please sign in to comment.