FROM python:3.9-slim WORKDIR /app # Instalar dependencias del sistema necesarias para audio y FunASR RUN apt-get update && apt-get install -y \ libsndfile1 \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Instalar dependencias Python COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copiar el código de la app COPY app /app # Removed build-time model caching to avoid OOM. Model will download on first boot. # Exponer el puerto de Hugging Face Spaces EXPOSE 7860 # Comando para iniciar fastapi CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]