docs(backend): add Docker instructions

This commit is contained in:
agatha 2024-03-31 22:20:31 -04:00
parent de7da85e7a
commit 89a959a3da

View File

@ -1,5 +1,12 @@
# Forum Backend # Forum Backend
Build and run Docker container:
```shell
docker build -t forum-backend .
docker run --rm -d -p 8000:8000 forum-backend:latest
``` ```
Run locally:
```shell
pip install -r requirements.txt pip install -r requirements.txt
uvicorn forum:app --reload uvicorn forum:app --reload
``` ```