You should write a proper plugin as suggested, but here’s how to do what you asked.
You can add something like this in the run section near the end of app.yml.
- exec: cp /shared/rr/cron.d.rr /etc/cron.d/rr
You want to put both your script and this file in some directory that’s mapped under shared rather than in the discourse directory.