FROM python:3.11-slim # Dependencias del sistema necesarias para vĂ­deo/ocr (ajusta si no las usas) RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg libsndfile1 libsm6 libxext6 libgl1 tesseract-ocr \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt COPY . /app # HF Spaces expone PORT ENV PORT=7860 CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]