priyanshu23456 commited on
Commit
0690bf9
·
verified ·
1 Parent(s): 48840ce

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +25 -0
dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ libpoppler-cpp-dev \
9
+ poppler-utils \
10
+ tesseract-ocr \
11
+ pkg-config \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Copy requirements and install Python dependencies
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy application code
19
+ COPY app.py .
20
+
21
+ # Expose the port the app runs on
22
+ EXPOSE 7860
23
+
24
+ # Command to run the application
25
+ CMD ["python", "app.py"]