Skip to content

[Bug]: Docker image 'hermes dashboard' 404s because web/ assets are not built #12177

@bluefishs

Description

@bluefishs

Bug Description

Running hermes dashboard from the Docker image starts FastAPI on port 9119 but serves a broken SPA. hermes_cli/web_dist/ is empty in the image and the HTML loads references to /assets/index-<hash>.js that return 404.

Root cause: the upstream Dockerfile installs root-level npm dependencies (for Playwright) and the whatsapp-bridge bundle, but never runs npm install && npm run build inside web/, so the Vite output is never baked into the image.

Steps to Reproduce

docker build -t hermes-repro -f Dockerfile .
docker run --rm -p 9119:9119 hermes-repro hermes dashboard
curl -sI http://localhost:9119/assets/ | head -1   # -> 404

Expected Behavior

/assets/index-<hash>.js (and the rest of the Vite-built SPA) should be served by FastAPI — the dashboard should load cleanly.

Actual Behavior

HTTP 404 for /assets/* because hermes_cli/web_dist/ is empty inside the image.

Affected Component

Other (Docker image build)

Environment

  • NousResearch/hermes-agent at tag v2026.4.16 (release v0.10.0)
  • docker build -f Dockerfile . followed by docker run ... hermes dashboard
  • Platform-independent (reproduced from any Docker host)

Fix

Add a RUN cd /opt/hermes/web && npm install --prefer-offline --no-audit && npm run build && npm cache clean --force step between the existing npm install block and the chown line. PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions