FROM python:3.10 # Install PortAudio system-level dependencies RUN apt-get update && apt-get install -y \ portaudio19-dev \ build-essential \ alsa-utils \ ffmpeg \ mpg123 \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Install Python dependencies COPY requirements.txt /app/ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy your app COPY . /app/ # Expose Gradio port EXPOSE 7860 # Run your Gradio app CMD ["python", "app.py"]