Deploy A Production-Ready Streamlit App with Cloud Run and Cloud Build

How to ship containerized applications on a serverless architecture and over a CICD pipeline.

8 min read

9 hours ago

If you’re a data scientist, you’re probably familiar with Streamlit. You’ve probably used it once to prototype a demo, share a dashboard, or even build a more complex app.

In this post, you’ll learn how to deploy Streamlit applications quickly and cost-effectively on the Google Cloud Platform.

To do that, you’ll need:

  • A GCP account with a valid credit card (although following this tutorial won’t cost you a cent)
  • Pulumi: an Infrastructure as Code (IaC) tool to provision the cloud resources needed to deploy the app
  • Some knowledge of Google Cloud services (Cloud Run), Docker and Poetry
  • A Github account to trigger automatic deployment with the Cloud Build CI/CD platform

If you’re unfamiliar with some of these tools, everything will be covered below, and links will be provided to learn more.

Without further ado, let’s have a look 👇 .

What is Cloud Run? ☁️