ChintanSatva commited on
Commit
e1e1849
·
verified ·
1 Parent(s): fd8097f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Install system dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ python3.9 \
9
+ python3-pip \
10
+ tesseract-ocr \
11
+ libtesseract-dev \
12
+ poppler-utils \
13
+ libopencv-dev \
14
+ && apt-get clean \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install Python dependencies
18
+ COPY requirements.txt .
19
+ RUN pip3 install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy application code
22
+ COPY app.py .
23
+
24
+ # Expose port for FastAPI
25
+ EXPOSE 8000
26
+
27
+ # Command to run FastAPI
28
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]