ST-THOMAS-OF-AQUINAS commited on
Commit
d2ea6cc
·
verified ·
1 Parent(s): 208bd81

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +18 -0
dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python base
2
+ FROM python:3.11-slim
3
+
4
+ # Set work directory
5
+ WORKDIR /app
6
+
7
+ # Copy files
8
+ COPY requirements.txt .
9
+ COPY app.py .
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Expose port (HF Spaces uses 7860)
15
+ EXPOSE 7860
16
+
17
+ # Run FastAPI via Uvicorn
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]