File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,9 @@ This example shows how to use FastApi 0.88.0 on Vercel with Serverless Functions
46
46
47
47
This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.
48
48
49
- ## Install dependencies
50
-
51
- ``` bash
52
- pip install -r requirements.txt
53
- ```
54
-
55
49
## Running Locally
56
50
51
+ ### With Docker
57
52
``` bash
58
53
# Build the Docker image
59
54
docker build -t deploy-python-fastapi-in-vercel .
@@ -63,8 +58,13 @@ docker run -p 8000:8000 deploy-python-fastapi-in-vercel
63
58
64
59
```
65
60
66
- or
61
+ ### With uvicorn
67
62
63
+ #### Install dependencies
64
+
65
+ ``` bash
66
+ pip install -r requirements.txt
67
+ ```
68
68
``` bash
69
69
uvicorn main:app --host 0.0.0.0 --port 8000
70
70
```
You can’t perform that action at this time.
0 commit comments