FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ libsndfile1 \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install CPU-only torch first to prevent CUDA download RUN pip install --no-cache-dir \ --extra-index-url https://download.pytorch.org/whl/cpu \ torch==2.6.0 \ && pip install --no-cache-dir mcp httpx # Install Moonshine (STT) RUN pip install --no-cache-dir moonshine-voice # Install KittenTTS (TTS) — CPU-only RUN pip install --no-cache-dir \ https://github.com/KittenML/KittenTTS/releases/download/0.8.1/kittentts-0.8.1-py3-none-any.whl COPY voice_server.py . EXPOSE 8000 CMD ["python", "voice_server.py"]