File size: 573 Bytes
929f41f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
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"]