zakihassan04 commited on
Commit
3828e70
·
verified ·
1 Parent(s): 5487d10

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +17 -0
dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy app
10
+ COPY app.py .
11
+ COPY data/gpt2_ready_filtered.jsonl ./data/
12
+
13
+ # Expose for Spaces
14
+ EXPOSE 7860
15
+
16
+ # Run with Uvicorn
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]