Skip to content

Commit 0b58ec8

Browse files
committed
Add Docker instructions to README for building and running the application
1 parent df9b129 commit 0b58ec8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ pip install -r requirements.txt
2020
uvicorn app:app --reload
2121
```
2222

23+
- `app:app` loads the FastAPI app from `app.py`.
24+
- `--reload` enables auto-reload for development (useful for code changes, not for production).
25+
2326
3. **Test with:**
2427

2528
```bash
@@ -45,6 +48,26 @@ Python_GML_ML_Pipeline/
4548

4649
---
4750

51+
## 🐳 Run with Docker
52+
53+
1. **Build the Docker image:**
54+
55+
```bash
56+
docker build -t python-gml-ml-pipeline .
57+
```
58+
59+
2. **Run the Docker container:**
60+
61+
```bash
62+
docker run -p 8000:8000 python-gml-ml-pipeline
63+
```
64+
65+
3. **Access the FastAPI app:**
66+
67+
Open [http://localhost:8000](http://localhost:8000) in your browser.
68+
69+
---
70+
4871
## ✨ Author
4972

5073
[![Pierre-Henry Soria](https://avatars0.githubusercontent.com/u/1325411?s=200)](https://ph7.me "Pierre-Henry Soria, Software Developer")

0 commit comments

Comments
 (0)