FROM python:3.10-slim # Rebuild trigger: 2026-04-11T00:00:00Z WORKDIR /app COPY requirements.txt . RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel \ && python -m pip install --no-cache-dir -r requirements.txt # Copy source COPY . . # Create cache dirs RUN mkdir -p .cache/transcriptions .cache/extractions # Expose Hugging Face Spaces default port EXPOSE 7860 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/health').read()" CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]