Chibueze-Kingsley commited on
Commit
ce5d691
·
verified ·
1 Parent(s): 4420149

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile CHANGED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set work directory
4
+ WORKDIR /code
5
+
6
+ # Install system dependencies
7
+ RUN apt-get update && apt-get install -y git
8
+
9
+ # Copy dependencies
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy app code
14
+ COPY . .
15
+
16
+ # Expose port 7860 (Hugging Face default)
17
+ EXPOSE 7860
18
+
19
+ # Run FastAPI with uvicorn
20
+ CMD ["uvicorn", "qwen_app:app", "--host", "0.0.0.0", "--port", "7860"]