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.