thecoderhere commited on
Commit
add75cd
·
verified ·
1 Parent(s): 5221213

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Download NLTK data
10
+ RUN python -c "import nltk; nltk.download('punkt'); nltk.download('stopwords')"
11
+
12
+ # Copy all files
13
+ COPY . .
14
+
15
+ # Create data directory if needed
16
+ RUN mkdir -p data
17
+
18
+ # Expose port
19
+ EXPOSE 7860
20
+
21
+ # Run Flask app
22
+ CMD ["python", "run.py"]