Vishwas1 commited on
Commit
708476e
·
verified ·
1 Parent(s): f9c5f8b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ tesseract-ocr \
7
+ tesseract-ocr-mar \
8
+ libtesseract-dev \
9
+ poppler-utils \
10
+ && apt-get clean
11
+
12
+ # Set up application
13
+ WORKDIR /app
14
+ COPY . /app
15
+
16
+ # Install Python dependencies
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Expose port for Gradio app
20
+ EXPOSE 7860
21
+
22
+ # Run the application
23
+ CMD ["python", "app.py"]