How to add a job to cron/anacron when creating Docker container

Can you explain in more detail what you are trying to do here?

You will likely have a much easier time making a plugin for your forum that runs on an interval in sidekiq.