fastapi-tdd-docker icon indicating copy to clipboard operation
fastapi-tdd-docker copied to clipboard

Error when publishing container to Heroku from Apple M1

Open giusepper11 opened this issue 3 years ago • 0 comments

to make deployment work in Heroku from my Apple M1 machine

I had to replace

docker build -f project/Dockerfile.prod -t registry.heroku.com/<app_name>/web ./project

to

docker buildx build --platform linux/amd64 -f project/Dockerfile.prod -t registry.heroku.com/<app_name>/web ./project

ref from here: https://stackoverflow.com/questions/66982720/keep-running-into-the-same-deployment-error-exec-format-error-when-pushing-nod

giusepper11 avatar Jan 25 '22 23:01 giusepper11