FROM python:3.10-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ curl \ && rm -rf /var/lib/apt/lists/* # Copy and install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY . . # Create upload directories RUN mkdir -p uploads/audio uploads/output # Download models from Hugging Face at startup (see startup script) EXPOSE 7860 CMD ["python", "main.py"]