File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11tasks :
2- - init : pip install -r requirements.txt
3-
4-
2+ - init : docker-compose up
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable
4949
5050## Running Locally
5151
52+ ### With Docker Compose
53+
54+ ``` bash
55+ docker-compose up
56+ ```
57+
5258### With Docker
59+
5360``` bash
5461# Build the Docker image
5562docker build -t deploy-python-fastapi-in-vercel .
@@ -66,6 +73,7 @@ docker run -p 8000:8000 deploy-python-fastapi-in-vercel
6673``` bash
6774pip install -r requirements.txt
6875```
76+
6977``` bash
7078uvicorn main:app --host 0.0.0.0 --port 8000
7179```
Original file line number Diff line number Diff line change 1+ services :
2+ web :
3+ build : .
4+ ports :
5+ - " 8000:8000"
You can’t perform that action at this time.
0 commit comments