FROM python:3.11-slim # Install FFmpeg and system dependencies RUN apt-get update && apt-get install -y \ ffmpeg \ git \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy package files COPY pyproject.toml requirements.txt ./ COPY src/ ./src/ # Install package RUN pip install --no-cache-dir -e . # Pre-download Whisper model (optional, speeds up first run) RUN python -c "import whisper; whisper.load_model('base')" # Expose port for web UI EXPOSE 7860 # Default command CMD ["avg", "web", "--host", "0.0.0.0", "--port", "7860"]