Update README.md
All checks were successful
Test web app / Check syntax (push) Successful in 10s
Test web app / Test server with Flask Dev Mode (push) Successful in 14s
Test web app / Test server with Gunicorn (WSGI) (push) Successful in 14s
Test web app / Test server with Hypercorn (ASGI) (push) Successful in 20s
Create Docker image / deploy (release) Successful in 45s
All checks were successful
Test web app / Check syntax (push) Successful in 10s
Test web app / Test server with Flask Dev Mode (push) Successful in 14s
Test web app / Test server with Gunicorn (WSGI) (push) Successful in 14s
Test web app / Test server with Hypercorn (ASGI) (push) Successful in 20s
Create Docker image / deploy (release) Successful in 45s
This commit is contained in:
parent
eb50981ff7
commit
94eb825b62
1 changed files with 31 additions and 0 deletions
31
README.md
31
README.md
|
@ -24,4 +24,35 @@ services:
|
|||
- 2009:2009/tcp
|
||||
volumes:
|
||||
- ./certs:/root/certs
|
||||
```
|
||||
|
||||
## On your host
|
||||
|
||||
### Install packages
|
||||
|
||||
#### Pip
|
||||
|
||||
```
|
||||
pip install pyopenssl hypercorn flask
|
||||
```
|
||||
|
||||
#### Debian/Ubuntu
|
||||
|
||||
```bash
|
||||
sudo apt install python3-hypercorn python3-flask python3-openssl
|
||||
```
|
||||
|
||||
#### Alpine
|
||||
|
||||
```bash
|
||||
apk add py3-openssl py3-flask py3-pip
|
||||
|
||||
# Alpine Linux doesn't have a hypercorn package
|
||||
pip install --break-system-packages hypercorn
|
||||
```
|
||||
|
||||
### Run server
|
||||
|
||||
```bash
|
||||
hypercorn --bind 0.0.0.0:2009 server:app
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue