Updated docker File
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32s
This commit is contained in:
@@ -21,11 +21,12 @@ 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
|
||||
|
||||
## Setup cron job
|
||||
RUN echo "${SCHEDULE} sh /usr/local/bin/nsupdate.sh" >> /etc/crontabs/root
|
||||
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
## Start crond
|
||||
CMD [ "crond", "-l", "2", "-f" ]
|
||||
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
||||
CMD [ "crond", "-f" ]
|
||||
|
||||
VOLUME /config
|
||||
VOLUME /log
|
||||
VOLUME /log
|
||||
Reference in New Issue
Block a user