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.
This commit is contained in:
@@ -29,10 +29,12 @@ RUN pnpm install --frozen-lockfile && pnpm build
|
|||||||
# ---------- Stage 2: Hermes Agent + Workspace runtime ----------
|
# ---------- Stage 2: Hermes Agent + Workspace runtime ----------
|
||||||
FROM nousresearch/hermes-agent:latest
|
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
|
USER root
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
nodejs tmux ca-certificates curl \
|
tmux curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# ---------- Overlay our forked Hermes source ----------
|
# ---------- Overlay our forked Hermes source ----------
|
||||||
@@ -115,6 +117,8 @@ USER hermes
|
|||||||
ENV HERMES_HOME=/opt/data
|
ENV HERMES_HOME=/opt/data
|
||||||
ENV PATH="/opt/data/.local/bin:${PATH}"
|
ENV PATH="/opt/data/.local/bin:${PATH}"
|
||||||
ENV CHROME_EXECUTABLE=/opt/hermes/.playwright/chromium/chrome-linux/chrome
|
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
|
RUN chown -R hermes:hermes /opt/hermes/tools /opt/hermes/toolsets.py
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user