FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 # Install system dependencies RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ ffmpeg \ poppler-utils \ tesseract-ocr \ libtesseract-dev \ curl \ build-essential \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/requirements.txt RUN pip install --upgrade pip setuptools wheel RUN pip install --no-cache-dir -r /app/requirements.txt COPY . /app EXPOSE 7860 CMD ["python3", "app.py"]