So fügen Sie beim Erstellen eines Docker-Containers einen Job zu cron/anacron hinzu

I would begin with the plugin tutorial series for the basic structure of a plugin:

If you want an example of how to add a job to a plugin the discourse-assign plugin has one that sends periodic reminders:

https://github.com/discourse/discourse-assign/blob/master/jobs/scheduled/enqueue_reminders.rb