Run Cron in Alpine
Fleeting- External reference: https://wiki.alpinelinux.org/wiki/Alpine_Linux:FAQ#My_cron_jobs_don.27t_run.3F
set up a cron container fairly simply. Here’s an example Dockerfile that should do the job:
FROM alpine COPY ./crontab /etc/crontab RUN crontab /etc/crontab RUN touch /var/log/cron.log CMD crond -f
Why don’t my cron jobs run? Start service crond and add it to the default runlevel:
— https://wiki.alpinelinux.org/wiki/Alpine_Linux:FAQ#My_cron_jobs_don.27t_run.3F