How I deploy serverless containers for free



AI Summary

  • Annoyance with non-transparent image backgrounds when downloaded from the internet.
  • Tools like remove BG and AI in Photoshop can remove image backgrounds.
  • The video creator often needs to remove backgrounds, which is inefficient in Photoshop and Premiere.
  • The creator built their own background remover app to streamline the process.
  • The app was dockerized for easy local running and free cloud deployment.
  • Dockerization avoids dependency issues and simplifies cloud deployment.
  • The app is a Python web app using the remove BG package and the U^2-Net model.
  • The app is not focused on AI, but uses AI to remove backgrounds.
  • A Flask app was created with drag-and-drop functionality for ease of use.
  • The Docker file is simple, including copying AI model weights to speed up the process.
  • The Docker image can be built, tagged, and run locally with ease.
  • For cloud deployment, the creator prefers Google Cloud Run for its free tier.
  • The Docker image is pushed to Google Cloud’s Artifact Registry.
  • Cloud Run service is set up with public access and configured for CPU and memory needs.
  • Auto-scaling is limited to three instances to prevent unnecessary scaling.
  • The app is now accessible via a web URL.
  • Dockerization ensures code portability across cloud services.
  • Upcoming Stripe course for Fireship Pro members is mentioned.