fix: add WORKDIR /opt/hermes and httpx dependency to Hermes Dockerfile #38

Open
Hermes wants to merge 6 commits from feat/hermes-dockerfile-workdir-httpx into master
Collaborator

Two changes to ai/hermes/Dockerfile:

  1. WORKDIR /opt/hermes — Added explicit WORKDIR instruction after FROM. The Dockerfile had no WORKDIR set; operations were relying on the base image's default. Being explicit avoids ambiguity and ensures all subsequent RUN commands have a known working directory.

  2. httpx — Added httpx to the uv pip install command (alongside piper-tts, sounddevice, numpy). Required by the OpenViking plugin for HTTP API calls.

Acceptance:

  • WORKDIR /opt/hermes is set
  • httpx is installed in the venv
  • Docker image builds successfully (test on the NixOS host with docker compose build hermes)
Two changes to `ai/hermes/Dockerfile`: 1. **WORKDIR /opt/hermes** — Added explicit WORKDIR instruction after FROM. The Dockerfile had no WORKDIR set; operations were relying on the base image's default. Being explicit avoids ambiguity and ensures all subsequent RUN commands have a known working directory. 2. **httpx** — Added `httpx` to the `uv pip install` command (alongside piper-tts, sounddevice, numpy). Required by the OpenViking plugin for HTTP API calls. **Acceptance:** - `WORKDIR /opt/hermes` is set - `httpx` is installed in the venv - Docker image builds successfully (test on the NixOS host with `docker compose build hermes`)
Hermes added 6 commits 2026-05-20 18:18:56 +00:00
The Hermes Matrix gateway uses the mautrix SDK, not matrix-nio.
This fixes E2EE support by installing the correct library.

Refs: PR #2
Brings in commits: 563ccc5 (paperclip), 37bf43c (Dockerfile), bce4032 (revert), 1eacc3c (Traefik ai_net fix)
- Integrate uv pip install of openai and mautrix[encryption] into entrypoint
- Add persistent volume mount for /opt/hermes/.venv
- Keep Syncthing volume mounts
fix: add WORKDIR and httpx dependency to Hermes Dockerfile
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
b8dc4783b6
- Add explicit WORKDIR /opt/hermes after FROM instruction
- Add httpx to pip install for OpenViking plugin support

Acceptance: Docker image builds with WORKDIR=/opt/hermes
and httpx available in the venv.
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
This pull request has changes conflicting with the target branch.
  • ai/compose.yml
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/hermes-dockerfile-workdir-httpx:feat/hermes-dockerfile-workdir-httpx
git checkout feat/hermes-dockerfile-workdir-httpx
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gortium/compose#38
No description provided.