awesome-compose
awesome-compose copied to clipboard
fastapi: Modernize Dockerfile to python:3.11-slim and clean up deprecated dev-envs
Summary
While going through the fastapi sample, I noticed a few areas that could be modernized:
- It uses
tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim, which has been deprecated upstream in favor of official Python slim images. - The Dockerfile contains a remaining
FROM builder as dev-envsstage that is no longer needed since Dev Environments was sunset. - The
README.mdreferences the legacydocker-composecommand instead of Compose V2 syntax (docker compose).
Proposal
- Update the Dockerfile to use standard
python:3.11-slimwithuvicorn[standard]. - Remove the unused
dev-envsstage and clean upcompose.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.