File size: 564 Bytes
924332f
 
 
 
 
 
 
acc9ae7
a02d46d
 
 
 
bf73f22
924332f
 
 
 
 
bf73f22
924332f
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use the official Python image as a base image
FROM python:3.9-slim

# Install system dependencies for Tesseract OCR and Gradio
RUN apt-get update && \
    apt-get install -y \
    tesseract-ocr \
    ghostscript \
    libtesseract-dev \ 
    libleptonica-dev \
    pkg-config \
    poppler-utils \
    && apt-get clean

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy your Gradio application code into the container
ENV PATH="/usr/local/bin:${PATH}"

# Specify the command to run your Gradio app
CMD ["python", "app.py"]