FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 \ VIRTUAL_ENV=/opt/venv \ PATH=/opt/venv/bin:/root/.local/bin:$PATH RUN apt-get update && apt-get install -y --no-install-recommends \ git curl ca-certificates build-essential ffmpeg ripgrep \ && rm -rf /var/lib/apt/lists/* RUN curl -LsSf https://astral.sh/uv/install.sh | sh \ && ln -sf /root/.local/bin/uv /usr/local/bin/uv WORKDIR /opt RUN git clone --recurse-submodules https://github.com/NousResearch/hermes-agent.git WORKDIR /opt/hermes-agent RUN uv venv /opt/venv --python 3.11 \ && uv pip install --python /opt/venv/bin/python -e ".[all]" \ && mkdir -p /root/.hermes/{cron,sessions,logs,memories,skills,pairing,hooks,image_cache,audio_cache,whatsapp/session} \ && cp cli-config.yaml.example /root/.hermes/config.yaml \ && touch /root/.hermes/.env WORKDIR /workspace CMD ["sleep", "infinity"]