mirror of https://github.com/knative/docs.git
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:
parent
725f432091
commit
318a50e35e
|
@ -1,4 +1,4 @@
|
|||
FROM python:alpine3.7
|
||||
FROM python:3.9-alpine
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Flask==1.1.1
|
||||
Flask==2.0.3
|
||||
|
|
Loading…
Reference in New Issue