chenhaoq87 commited on
Commit
5718fcc
·
verified ·
1 Parent(s): b93ecd8

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements and install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy application files
10
+ COPY app.py .
11
+ COPY model/ ./model/
12
+
13
+ # Expose port 7860 (HuggingFace Spaces default)
14
+ EXPOSE 7860
15
+
16
+ # Run the FastAPI app with uvicorn
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]