Crontab
This commit is contained in:
9
backend/Cron.Dockerfile
Normal file
9
backend/Cron.Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM ubuntu
|
||||
|
||||
RUN apt-get update && apt-get install -y cron
|
||||
|
||||
COPY ./automation/crontab /var/spool/cron/crontabs/backend
|
||||
|
||||
#ENTRYPOINT [ "/bin/bash" ]
|
||||
|
||||
CMD ["cron", "-f"]
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
0 2 * * * curl backend/update
|
||||
0 2 * * * curl http://backend/update
|
||||
|
Reference in New Issue
Block a user