From 62fa78b97faf9c4c831766eabd25654db01070f2 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:07:26 -0400 Subject: [PATCH] fix(hermes-workspace): add HOST=0.0.0.0 for Traefik reachability, drop redundant nodejs install The base hermets-agent image already ships Node.js; apt-get nodejs could conflict or downgrade it. Only install tmux and curl. Add ENV HOST=0.0.0.0 so the workspace listens on all interfaces (default 127.0.0.1 makes it unreachable via Traefik reverse proxy). Add ENV NODE_ENV=production for production-mode optimizations. --- ai/hermes-workspace/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ai/hermes-workspace/Dockerfile b/ai/hermes-workspace/Dockerfile index 2f40c9a..8ff6b45 100644 --- a/ai/hermes-workspace/Dockerfile +++ b/ai/hermes-workspace/Dockerfile @@ -29,10 +29,12 @@ RUN pnpm install --frozen-lockfile && pnpm build # ---------- Stage 2: Hermes Agent + Workspace runtime ---------- FROM nousresearch/hermes-agent:latest -# ---------- Install Node.js + tmux for Workspace + Swarm ---------- +# ---------- Install tmux for Swarm workers + curl for health checks ---------- +# Note: Node.js is already shipped with the base hermets-agent image; apt's nodejs +# would be older and could conflict. Only add what's missing. USER root RUN apt-get update && apt-get install -y --no-install-recommends \ - nodejs tmux ca-certificates curl \ + tmux curl \ && rm -rf /var/lib/apt/lists/* # ---------- Overlay our forked Hermes source ---------- @@ -115,6 +117,8 @@ USER hermes ENV HERMES_HOME=/opt/data ENV PATH="/opt/data/.local/bin:${PATH}" ENV CHROME_EXECUTABLE=/opt/hermes/.playwright/chromium/chrome-linux/chrome +ENV HOST=0.0.0.0 +ENV NODE_ENV=production RUN chown -R hermes:hermes /opt/hermes/tools /opt/hermes/toolsets.py