From 1658a0d1ca576627bef72c1ac325fe2a17471c5d Mon Sep 17 00:00:00 2001 From: "Brandon Waterloo [MSFT]" <36966225+bwateratmsft@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:34:06 -0500 Subject: [PATCH] Bump Python image version and requirements.txt versions --- resources/templates/python/Dockerfile.template | 2 +- resources/templates/python/requirements.txt.template | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/templates/python/Dockerfile.template b/resources/templates/python/Dockerfile.template index 248fdccac8..46ec28eea9 100644 --- a/resources/templates/python/Dockerfile.template +++ b/resources/templates/python/Dockerfile.template @@ -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. diff --git a/resources/templates/python/requirements.txt.template b/resources/templates/python/requirements.txt.template index 39bc3baf95..6f9fad0a2e 100644 --- a/resources/templates/python/requirements.txt.template +++ b/resources/templates/python/requirements.txt.template @@ -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}}