Recipe for using distroless container images with FastAPI

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Sonar - Write Clean Python Code. Always.
  • SaaSHub - Software Alternatives and Reviews
  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

    A few days ago I was trying to achieve that and took me a quite amount of time, is not so straight forward as you may think before trying it by yourself. In order to avoid you future headaches, here is a hack to use Distroless containers with FastAPI. In this example I'm trying to build an application with several requirements. The application basically allow you to download videos from Twitter using youtube-dl, you could test the application here also: Twittdown. Here is the structure of the application:

  • distroless

    🥑 Language focused docker images, minus the operating system.

    A few days ago I was trying to achieve that and took me a quite amount of time, is not so straight forward as you may think before trying it by yourself. In order to avoid you future headaches, here is a hack to use Distroless containers with FastAPI. In this example I'm trying to build an application with several requirements. The application basically allow you to download videos from Twitter using youtube-dl, you could test the application here also: Twittdown. Here is the structure of the application:

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts