There are some situations where you just need to run a simple single command cronjob. This is where the alpine
Docker image comes in very handy. It comes with a simple yet flexible cron
package via busybox
.
Single Line
For very simple stuff, a single command using the default alpine
image.
Mounted Volume
For more complex crontabs, mount a crontab file!
Compiled Docker Image
Compiling your own image with an entrypoint makes it cleaner to run.