Image based on python:3.7-slim for running periodic task with cron.
Add a file called scheduler.crontab to image root
FROM unclcd/cron:latest
COPY scheduler.crontab /scheduler.crontab
The file scheduler.crontab should contain a line for every task following crontab sintaxis.
Also the file should contain a last line, and every command should be redirected to
/proc/1/fd/1 2>/proc/1/fd/2 for its output to be redirected to container standard output. For instance:
* * * * * your_command > /proc/1/fd/1 2>/proc/1/fd/2
# This extra line makes it a valid cron
Ensure your command and every dependency are available in the correct path.
Content type
Image
Digest
sha256:12a1a9b89…
Size
49.6 MB
Last updated
over 2 years ago
docker pull unclcd/cron