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
This commit is contained in:
Samu Tamminen 2022-03-18 21:40:18 +08:00 committed by GitHub
parent 725f432091
commit 318a50e35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM python:alpine3.7
FROM python:3.9-alpine
COPY . /app

View File

@ -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

View File

@ -1 +1 @@
Flask==1.1.1
Flask==2.0.3