EMS-Royal commited on
Commit
12b8fe9
·
verified ·
1 Parent(s): 9d79bf1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies
5
+ RUN pip install --upgrade pip
6
+ COPY requirements.txt .
7
+ RUN pip install -r requirements.txt
8
+
9
+ # Copy app files
10
+ COPY main.py .
11
+
12
+ # Run FastAPI app with Uvicorn
13
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]