From 318a50e35e3947fbab03b7a8d421c33a14cd86ed Mon Sep 17 00:00:00 2001 From: Samu Tamminen Date: Fri, 18 Mar 2022 21:40:18 +0800 Subject: [PATCH] Update eventing helloworld-python dependencies (#4834) * upgrade Flask to 2.0.1 and python to 3.9 * use latest Flask version 2.0.3 and active Docker image python:3.9-alpine --- code-samples/eventing/helloworld/helloworld-python/Dockerfile | 2 +- code-samples/eventing/helloworld/helloworld-python/README.md | 4 ++-- .../eventing/helloworld/helloworld-python/requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code-samples/eventing/helloworld/helloworld-python/Dockerfile b/code-samples/eventing/helloworld/helloworld-python/Dockerfile index 7648331aa..17920ce26 100644 --- a/code-samples/eventing/helloworld/helloworld-python/Dockerfile +++ b/code-samples/eventing/helloworld/helloworld-python/Dockerfile @@ -1,4 +1,4 @@ -FROM python:alpine3.7 +FROM python:3.9-alpine COPY . /app diff --git a/code-samples/eventing/helloworld/helloworld-python/README.md b/code-samples/eventing/helloworld/helloworld-python/README.md index 2ab3a3b1e..191bab3de 100644 --- a/code-samples/eventing/helloworld/helloworld-python/README.md +++ b/code-samples/eventing/helloworld/helloworld-python/README.md @@ -52,7 +52,7 @@ cd knative-docs/code-samples/eventing/helloworld/helloworld-python 1. Add a `requirements.txt` file containing the following contents: ```bash - Flask==1.1.1 + Flask==2.0.3 ``` 1. In your project directory, create a file named `Dockerfile` and copy the following code @@ -60,7 +60,7 @@ cd knative-docs/code-samples/eventing/helloworld/helloworld-python [Deploying Go servers with Docker](https://blog.golang.org/docker). ```docker - FROM python:alpine3.7 + FROM python:3.9-alpine COPY . /app diff --git a/code-samples/eventing/helloworld/helloworld-python/requirements.txt b/code-samples/eventing/helloworld/helloworld-python/requirements.txt index 32e89684b..f21b24b41 100644 --- a/code-samples/eventing/helloworld/helloworld-python/requirements.txt +++ b/code-samples/eventing/helloworld/helloworld-python/requirements.txt @@ -1 +1 @@ -Flask==1.1.1 +Flask==2.0.3