FROM python:3.12-slim # Install system dependencies (ffmpeg is required for audio extraction & conversion) RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ curl \ git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python requirements COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY . . # Create volume mountpoints RUN mkdir -p /music /app/data EXPOSE 8005 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8005"]