From https://hackmd.io/@nirvana/deploy_python_m1
Build image with linux platform for heroku servers. Replace {NAME_OF_HEROKU_APP}
with your own tag:
docker buildx build --platform linux/amd64 -t {NAME_OF_HEROKU_APP} .
Tag your app with the url for your apps registry. make sure to use the name of your Heroku app in the url and tag name:
docker tag {NAME_OF_HEROKU_APP} registry.heroku.com/{NAME_OF_HEROKU_APP}/web
Use docker to push the image to the Heroku container registry:
docker push registry.heroku.com/{NAME_OF_HEROKU_APP}/web