Omnamdev02 commited on
Commit
d5484bc
·
unverified ·
1 Parent(s): 2b743b1

Add Dockerfile for Python application setup

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # System dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python dependencies
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Download NLTK data
16
+ COPY setup_nltk.py .
17
+ RUN python setup_nltk.py
18
+
19
+ # Copy all project files
20
+ COPY . .
21
+
22
+ EXPOSE 7860
23
+
24
+ CMD ["python", "app.py"]