triflix commited on
Commit
204eed1
·
verified ·
1 Parent(s): 76b068b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile - for Hugging Face / container deploy (exposes 7860)
2
+ FROM python:3.10-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # copy requirements first for caching
7
+ COPY requirements.txt .
8
+
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # copy app and templates
12
+ COPY . .
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]