- Extend upstream hermes-agent image - Add libportaudio2 for audio capture - Install sounddevice, numpy, faster-whisper via uv - Add health check for voice dependencies - Include Dockerfile.full for future complete rebuild from source
25 lines
789 B
Docker
25 lines
789 B
Docker
# 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
|
|
|
|
# Switch back to hermes user
|
|
USER hermes
|
|
|
|
# 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
|