aimanathar commited on
Commit
779b3d2
·
verified ·
1 Parent(s): 5ca5da5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # System packages jo PDFs aur OCR ke liye zaroori hain
4
+ RUN apt-get update && apt-get install -y \
5
+ tesseract-ocr \
6
+ poppler-utils \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Working directory set karo
10
+ WORKDIR /code
11
+
12
+ # Python dependencies install karo
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Baaki project files copy karo
17
+ COPY . .
18
+
19
+ # Start app
20
+ CMD ["python", "app.py"]