File size: 525 Bytes
2deee95
46efefc
 
46a7f69
2deee95
 
 
5dedbe7
46a7f69
 
 
2deee95
46efefc
 
 
2deee95
46efefc
 
2deee95
46efefc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use an official Python image from Docker Hub
FROM python:3.10-slim

# Install system dependencies and Tesseract OCR
RUN apt-get update && \
    apt-get install -y tesseract-ocr && \
    apt-get clean

# Set the environment variable for Tesseract to be in PATH
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/

# Copy requirements.txt and install Python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy the application code
COPY . .

# Run the Gradio app
CMD ["python3", "app.py"]