Skip to content

Commit

Permalink
Update eventing helloworld-python dependencies (#4834)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Samu Tamminen authored Mar 18, 2022
1 parent 725f432 commit 318a50e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:alpine3.7
FROM python:3.9-alpine

COPY . /app

Expand Down
4 changes: 2 additions & 2 deletions code-samples/eventing/helloworld/helloworld-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ 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
block into it. For detailed instructions on dockerizing a Go app, see
[Deploying Go servers with Docker](https://blog.golang.org/docker).

```docker
FROM python:alpine3.7
FROM python:3.9-alpine

COPY . /app

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Flask==1.1.1
Flask==2.0.3

0 comments on commit 318a50e

Please sign in to comment.