Posts Tagged: docker
-
Reducing Docker Image Size from 1.2GB to 145MB for Python FastAPI Applications
Reduce FastAPI Docker images from 1.2 GB to 145 MB using Alpine multistage builds and uv. Includes benchmarks, production Dockerfile, .dockerignore, and pitfalls.
-
Serving FastAPI Behind Traefik with Automatic HTTPS and Path-Based Routing
Deploy FastAPI behind Traefik using Docker Compose for automatic HTTPS via Let's Encrypt and path-based routing. Covers docker-compose labels, middleware for prefix stripping, and production considerations.
-
Comparing Mise and Docker Python Images for Local Development Performance
Explore using mise instead of Docker for Python images in local development to potentially reduce startup and iteration times. Includes benchmarks from Ubuntu 24.04 and M2 Mac, migration steps, and trade-offs.