Skip to content

Commit f875e6a

Browse files
committed
docs() add docker commands
1 parent c8cfd9f commit f875e6a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,20 @@ pip install -r requirements.txt
5555
## Running Locally
5656

5757
```bash
58-
npm i -g vercel
59-
vercel dev
58+
# Build the Docker image
59+
docker build -t deploy-python-fastapi-in-vercel .
60+
61+
# Run the Docker container
62+
docker run -p 8000:8000 deploy-python-fastapi-in-vercel
63+
6064
```
6165

62-
or
66+
or
6367

6468
```bash
6569
uvicorn main:app --host 0.0.0.0 --port 8000
6670
```
71+
6772
Your FastApi application is now available at `http://localhost:8000`.
6873

6974
## One-Click Deploy
@@ -90,4 +95,3 @@ Or buy me a coffee 🙌🏾
9095

9196
Copyright © 2023 [Hebert F Barros](https://github.com/hebertcisco).<br />
9297
This project is [MIT](LICENSE) licensed.
93-

0 commit comments

Comments
 (0)