I realized that almost all the tutorials I could find on deployment of streamlit apps on GCP are based on docker images, which basically says that containerize your app inside a docker and deploy it on App engine or Compute engine.
But while doing some research I found that we can directly deploy python applications to App Engine without the need for containerizing inside docker. This method is cheaper and much faster and better performance than the docker version.
Did anyone explore this, can you please point such a tutorial to me. Otherwise, I will try to create a tutorial around this.
I deployed the app to GCP APP engine standard environment (without docker), but when I open the url, it is stuck at “Please wait”. I tried all the solutions available online sample below:
streamlit run --server.port=8080 --server.address=0.0.0.0 --server.enableCORS=false --server.enableWebsocketCompression=false --server.enableXsrfProtection=false --server.headless=true
Finally I was able to deploy streamlit to Google App Engine in the flexible environment without any docker/container.
The standard environment lacks web socket support which prevents Streamlit app to handle the backend-frontend communications.
I am facing the same problem. This is the complete app.yaml file that you used? because it generated some error when you execute the command of gcloud app deploy
@Orlando_B are you still running into this? I had similar errors but then noticed that when I copied/pasted OP’s app.yaml some important indents were lost and that caused those errors. For example, I received the same in your ‘unexpected attribute’ error because operating_system should be indented under runtime_config. Here’s my yaml in case it helps and it runs as of today.