Skip to content

Commit 2a1a9d7

Browse files
committed
Correctly install Hermes Agent dependencies
This change introduces UV to sync the .[all] target for all python dependencies. This was introduced due to missing dependencies such as `discord.py` in the logs. Additionally runs npm install to get the JS dependencies for the TUI and web dashboards.
1 parent 9dbe855 commit 2a1a9d7

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎agents/hermes/Dockerfile.base‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ RUN mkdir -p /sandbox/.hermes-data/memories \
9393
# Hermes is not on PyPI — official install is via their install script or
9494
# direct pip install from the release tarball.
9595
# hadolint ignore=DL3013
96-
RUN pip3 install --no-cache-dir --break-system-packages \
97-
"hermes-agent @ https://github.com/NousResearch/hermes-agent/archive/refs/tags/${HERMES_VERSION}.tar.gz" \
98-
"pyyaml==6.0.3" \
99-
"python-telegram-bot>=21.0" \
100-
&& hermes --version
96+
RUN pip3 install --no-cache-dir --break-system-packages uv
97+
RUN mkdir /opt/hermes && curl -L https://github.com/NousResearch/hermes-agent/archive/refs/tags/${HERMES_VERSION}.tar.gz | tar -xz -C /opt/hermes --strip-components=1
98+
WORKDIR /opt/hermes
99+
RUN uv venv && \
100+
uv pip install --no-cache-dir -e ".[all]" && \
101+
npm install --prefer-offline --no-audit
102+
103+
ENV PATH="/opt/hermes/.venv/bin:${PATH}"
104+
RUN hermes --version

0 commit comments

Comments
 (0)