fastapi-tdd-docker
fastapi-tdd-docker copied to clipboard
Error when publishing container to Heroku from Apple M1
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