motif64

m64_3c85efaebdba / Dockerfile

37 lines, 2.2 KBraw
1# Hermes Agent (NousResearch, v2026.9.21) behind the CLI shim + a small control gateway,2# driving GPT-6 Luna on OpenRouter. Adapted from gx103# ~/code/vlmtest/agents/hermes/Dockerfile. No GPU. At run time m64 puts the container on an4# internal network whose only egress is its gate (HTTP(S)_PROXY); the gate adds the5# OpenRouter key to plain http://openrouter.ai requests, so the key never enters the container.6#7# Base: debian:12-slim, pinned by its multi-arch index digest.8FROM debian@sha256:99c0b25c46d0214d5a2091092e7908907dcaecd6a962cde0ac700acee222b6f3910RUN apt-get update && apt-get install -y --no-install-recommends \11      ca-certificates curl git jq unzip xz-utils procps \12      python3 python3-venv python3-pip ripgrep build-essential \13    && rm -rf /var/lib/apt/lists/*1415# Hermes's own installer, taken from the pinned commit (the v2026.9.21 tag) and checked by16# sha256, then told to check out that same commit. It provisions a sha256-pinned uv and17# installs Python deps from the repo's lock (pm/lock.json). As root it puts the code in18# /usr/local/lib/hermes-agent and links `hermes` into /usr/local/bin. The browser and19# computer-use stacks are skipped (gigabytes, and the sandbox has no display).20ARG HERMES_COMMIT=d337b736aa1e8ebecfab043842d13e4a2d2f48a321RUN curl -fsSL "https://raw.githubusercontent.com/NousResearch/hermes-agent/${HERMES_COMMIT}/scripts/install.sh" -o /tmp/install.sh \22    && echo "00f9080c6452bf87f03ef2fffb4b2c23b9f43f946aaae956e4c547d17e310b22  /tmp/install.sh" | sha256sum -c - \23    && bash /tmp/install.sh --branch main --commit "${HERMES_COMMIT}" \24         --non-interactive --skip-setup --skip-browser --skip-computer-use \25    && rm -f /tmp/install.sh \26    && hermes --version2728# Gateway deps, the same pinned set as the opencode capsule's gateway (Python 3.11).29RUN python3 -m venv /opt/gateway && /opt/gateway/bin/pip install --no-cache-dir \30      fastapi==0.115.14 uvicorn==0.32.1 httpx==0.28.1 \31      starlette==0.46.2 pydantic==2.14.1 pydantic_core==2.50.1 annotated-types==0.8.0 \32      typing_extensions==4.16.0 typing-inspection==0.4.4 anyio==4.15.1 idna==3.20 \33      certifi==2026.10.23 httpcore==1.0.9 h11==0.16.0 click==8.5.03435RUN useradd -m -u 1000 agent36USER agent37WORKDIR /scratch