FROM python:3.10.11-slim # Install system dependencies: # - libsndfile1: required to read WAV files via torchaudio # - ffmpeg: often required for audio manipulation RUN apt-get update && apt-get install -y \ libsndfile1 \ ffmpeg \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . /app/ EXPOSE 7860 ENV GRADIO_SERVER_NAME=0.0.0.0 CMD ["python", "app.py"]