Via https://devcenter.heroku.com/categories/deploying-with-docker. (note: Rocket.Chat has made this since 3 years ago (see the log of https://github.com/RocketChat/Rocket.Chat/blob/develop/app.json).)