The deployment instructions here don't work for M1 mac. The image that gets built is not compatible with heroku and get error with exit code 126 and message.
|
Deploy on heroku - manually |
|
|
|
step 1: - heroku login |
|
|
|
step 2:- Login to heroku container registry |
|
command:- heroku container:login |
|
|
|
step 3:- Build docker image and push to heroku container registry |
|
command:- heroku container:push -a udemy-fastify-course web |
|
|
|
step 4:- Run docker image on heroku |
|
comamnd:- heroku container:release -a udemy-fastify-course web |
I managed to work around this by changing the deployment steps to following
step 1: - command:- heroku login
step 2:- Login to heroku container registry
command:- heroku container:login
step 3: Build docker image for amd64
docker buildx build --platform linux/amd64 -t udemy-fastify-course .
docker tag learn-fastify registry.heroku.com/udemy-fastify-course/web
docker push registry.heroku.com/udemy-fastify-course/web
heroku container:release web -a udemy-fastify-course
The deployment instructions here don't work for M1 mac. The image that gets built is not compatible with heroku and get error with exit code 126 and message.
fastify-node-project/deploy.txt
Lines 1 to 12 in fb2e1e7
I managed to work around this by changing the deployment steps to following
step 1: - command:- heroku login
step 2:- Login to heroku container registry
command:- heroku container:login
step 3: Build docker image for amd64
docker buildx build --platform linux/amd64 -t udemy-fastify-course .
docker tag learn-fastify registry.heroku.com/udemy-fastify-course/web
docker push registry.heroku.com/udemy-fastify-course/web
heroku container:release web -a udemy-fastify-course