FROM python:3.11-slim RUN apt-get update && apt-get install -y libsndfile1 ffmpeg && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Patch pipecat LiveKit transport bugs COPY patch_livekit.py /tmp/patch_livekit.py RUN python3 /tmp/patch_livekit.py COPY . . HEALTHCHECK --interval=30s --timeout=10s --start-period=30s \ CMD python -c "import httpx; httpx.get('http://localhost:8080/health').raise_for_status()" CMD ["python", "main.py"]