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