# ---- BubbleGuard (FastAPI) – Dockerfile for Hugging Face Spaces ---- FROM python:3.10-slim ENV DEBIAN_FRONTEND=noninteractive \ PIP_NO_CACHE_DIR=1 \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 # ffmpeg for faster-whisper (audio) RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python deps first (better caching) COPY requirements.txt . RUN python -m pip install --upgrade pip && pip install -r requirements.txt # App code + UI at repo root COPY . . # Hugging Face injects $PORT; bind to 0.0.0.0 ENV HOST=0.0.0.0 CMD ["python", "main.py"]