I'm running on MacOS and ran into the following error after running the make commands and deploying a Cloud Build Service. The error occurs when the service attempts to spin up. The error is:
Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable.
In order for Cloud Run to work, it needs the container image compiled for 64-bit Linux:
Note: If you build your container image on a ARM based machine, then it might not work as expected when used with Cloud Run. To solve this issue, build your image using Cloud Build.
I'm running on MacOS and ran into the following error after running the make commands and deploying a Cloud Build Service. The error occurs when the service attempts to spin up. The error is:
This is covered in the Google Cloud docs Container failed to start.
In order for Cloud Run to work, it needs the container image compiled for 64-bit Linux:
It suggests using Cloud Build. I tried that with:
When I deploy with an image built from Cloud Build, it works!
I'll provide a PR for you to consider for merging in with these notes.