File size: 650 Bytes
afeb367
 
 
 
 
 
 
 
dc906a1
afeb367
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ---- 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"]