Spaces:
Running
Running
# Base image with Python | |
FROM python:3.10-slim | |
# Install system dependencies, including Tesseract | |
RUN apt-get update && apt-get install -y \ | |
tesseract-ocr \ | |
libsm6 \ | |
libxext6 \ | |
libxrender-dev | |
# Install Python dependencies | |
COPY requirements.txt /app/requirements.txt | |
WORKDIR /app | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# Copy your app code | |
COPY app.py /app/app.py | |
# Expose Gradio on port 7860 | |
CMD ["python3", "app.py"] | |