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
2 changed files with 66 additions and 6 deletions
Showing only changes of commit b8dc4783b6 - Show all commits

View File

@@ -9,6 +9,8 @@
# ---------- Base: official Hermes image (system deps, npm, uv, Playwright) ----------
FROM nousresearch/hermes-agent:latest
WORKDIR /opt/hermes
# ---------- Overlay our forked source ----------
# Uses SSH agent forwarding from the build host (no key baked into image).
# --exclude node_modules/.venv keeps the base image's pre-built layers intact.
@@ -50,7 +52,7 @@ COPY --chmod=0755 --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
# ---------- Piper TTS ----------
RUN . /opt/hermes/.venv/bin/activate && \
uv pip install --no-cache-dir piper-tts sounddevice numpy && \
uv pip install --no-cache-dir piper-tts sounddevice numpy httpx && \
mkdir -p /opt/hermes/.venv/share/piper/voices
RUN /opt/hermes/.venv/bin/python3 /dev/stdin << 'PYEOF'