awesome-compose icon indicating copy to clipboard operation
awesome-compose copied to clipboard

fastapi: Modernize Dockerfile to python:3.11-slim and clean up deprecated dev-envs

Open VimalN2005 opened this issue 2 months ago • 0 comments

Summary

While going through the fastapi sample, I noticed a few areas that could be modernized:

  1. It uses tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim, which has been deprecated upstream in favor of official Python slim images.
  2. The Dockerfile contains a remaining FROM builder as dev-envs stage that is no longer needed since Dev Environments was sunset.
  3. The README.md references the legacy docker-compose command instead of Compose V2 syntax (docker compose).

Proposal

  • Update the Dockerfile to use standard python:3.11-slim with uvicorn[standard].
  • Remove the unused dev-envs stage and clean up compose.yaml.
  • Update the README commands to Compose V2.

Question for Maintainers

Would the team be open to this modernization? If so, could you please assign this issue to me? I'll be glad to prepare and submit the PR.

VimalN2005 avatar Sep 12 '26 08:09 VimalN2005