Skip to content

Commit

Permalink
Bump Python image version and requirements.txt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft committed Feb 2, 2024
1 parent 69b3d9c commit 1658a0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/templates/python/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.10-slim
FROM python:3.12-slim

{{#if (isRootPort ports)}}
# Warning: A port below 1024 has been exposed. This requires the image to run as a root user which is not a best practice.
Expand Down
10 changes: 5 additions & 5 deletions resources/templates/python/requirements.txt.template
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# To ensure app dependencies are ported from your virtual environment/host machine into your container, run 'pip freeze > requirements.txt' in the terminal to overwrite this file
{{#if (eq platform 'Python: Django')}}
django==4.1.5
django==5.0.1
{{/if}}
{{#if (eq platform 'Python: FastAPI')}}
fastapi[all]==0.89.0
uvicorn[standard]==0.20.0
fastapi[all]==0.109.0
uvicorn[standard]==0.27.0
{{/if}}
{{#if (eq platform 'Python: Flask')}}
flask==3.0.0
flask==3.0.1
{{/if}}
{{#unless (eq platform 'Python: General')}}
gunicorn==20.1.0
gunicorn==21.2.0
{{/unless}}

0 comments on commit 1658a0d

Please sign in to comment.