| FROM python:3.10 | |
| WORKDIR /code | |
| # Install system dependencies including PortAudio | |
| RUN apt-get update && apt-get install -y \ | |
| libportaudio2 \ | |
| libportaudiocpp0 \ | |
| portaudio19-dev \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python packages | |
| COPY requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your application code | |
| COPY . /code/ | |
| # Command to run the application | |
| CMD ["python", "app.py"] | |