Flask App Works Locally But Fails to Deploy on Google Cloud Run: "Failed to Start and Listen on the Port"
Problem: I'm trying to deploy a Flask app with a pre-trained machine learning model (stored as a model.pkl file in the same directory) to Google Cloud Run. The container runs perfectly fine locally, but fails when deploying to Cloud Run with the following error: ERROR: (gcloud.run.deploy) Revision 'mymodel-service-00015-svm' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Commands I'm Using: Building the Docker image: docker build --no-cache -t gcr.io/dehaproject2024/mymodel:latest
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.