# Custom Hermes Agent image with voice support and ROCm for AMD GPU # Builds on upstream image and adds local STT capabilities FROM nousresearch/hermes-agent:latest AS base # Install system dependencies for audio capture USER root RUN apt-get update && \ apt-get install -y --no-install-recommends \ libportaudio2 \ && rm -rf /var/lib/apt/lists/* # Install Python packages for voice support # Using uv for consistency with Hermes build process RUN uv pip install --no-cache-dir \ sounddevice \ numpy \ faster-whisper # Health check for voice readiness HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ CMD python3 -c "import sounddevice, faster_whisper; print('voice deps OK')" || exit 1