Sudhansh26 commited on
Commit
6c48a00
·
verified ·
1 Parent(s): 5d760fe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.11
2
+
3
+ WORKDIR /app
4
+ COPY . .
5
+
6
+ # Install system dependencies for Tesseract + PDF support
7
+ RUN apt-get update && apt-get install -y \
8
+ poppler-utils \
9
+ tesseract-ocr \
10
+ tesseract-ocr-hin \
11
+ && apt-get clean
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ EXPOSE 7860
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]