FROM python:3.11-slim # Install system dependencies RUN apt-get update && apt-get install -y \ ffmpeg \ tesseract-ocr \ libgl1 \ libglib2.0-0 \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy python dependencies and install COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Copy application code and files COPY pipeline/ ./pipeline/ COPY app.py ./ EXPOSE 7860 # Run uvicorn on port 7860 (required by HF Spaces) CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]