So, my local docker environment all works fine with docker hub desktop app. But when I try to deploy to heroku using
heroku container:push web -a your-app-name
It gives an error saying
unsupported: unsupported architecture arm64 ▸ Error: docker push exited with Error: 1
On researching, I found that heroku does not support building from arm64. Is there any workaround to this?
A workaround that I found useful was to build the image using the Docker CLI under linux/amd64 architecture, tag and push to the appropriate Heroku URL, then release using the Heroku CLI.