forked from coop-cloud/backup-bot-two
Allow overriding cron schedule, fix vars
This commit is contained in:
@ -7,9 +7,7 @@ RUN apk add --upgrade --no-cache \
|
||||
restic
|
||||
|
||||
COPY backup.sh /usr/bin/backup.sh
|
||||
RUN chmod +x /usr/bin/backup.sh
|
||||
COPY setup-cron.sh /usr/bin/setup-cron.sh
|
||||
RUN chmod +x /usr/bin/backup.sh /usr/bin/setup-cron.sh
|
||||
|
||||
RUN echo "* * * * * /usr/bin/backup.sh" | crontab -
|
||||
RUN crontab -l
|
||||
|
||||
ENTRYPOINT ["crond", "-f", "-L", "/dev/stdout"]
|
||||
ENTRYPOINT [ "/usr/bin/setup-cron.sh" ]
|
||||
|
Reference in New Issue
Block a user