blob: 6eca1a0e6fd763499fe79daa97ef01e7637a136d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# cron
Docker image for running cronjobs, with logging.
`docker build -t reg.reaweb.uk/cron . && docker push reg.reaweb.uk/cron`
## Example `Dockerfile`:
Dockerfile```
FROM reg.reaweb.uk/cron
RUN echo "0 21 * * sat,wed root python3 /app/autoBackup.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
RUN echo "@monthly root python3 /app/autoScrub.py > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab
```
|