feat(docker): add Docker container for the agent (salvage #1841) (#3668)
Adds a complete Docker packaging for Hermes Agent:
- Dockerfile based on debian:13.4 with all deps
- Entrypoint that bootstraps .env, config.yaml, SOUL.md on first run
- CI workflow to build, test, and push to DockerHub
- Documentation for interactive, gateway, and upgrade workflows
Closes #850, #913.
Changes vs original PR:
- Removed pre-created legacy cache/platform dirs from entrypoint
(image_cache, audio_cache, pairing, whatsapp/session) — these are
now created on demand by the application using the consolidated
layout from get_hermes_dir()
- Moved docs from docs/docker.md to website/docs/user-guide/docker.md
and added to Docusaurus sidebar
Co-authored-by: benbarclay <benbarclay@users.noreply.github.com>
2026-03-28 22:21:48 -07:00
|
|
|
FROM debian:13.4
|
|
|
|
|
|
2026-03-30 15:19:52 -05:00
|
|
|
# Install system dependencies in one layer, clear APT cache
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y --no-install-recommends \
|
2026-03-30 15:57:22 -05:00
|
|
|
build-essential nodejs npm python3 python3-pip ripgrep ffmpeg gcc python3-dev libffi-dev && \
|
2026-03-30 15:19:52 -05:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
feat(docker): add Docker container for the agent (salvage #1841) (#3668)
Adds a complete Docker packaging for Hermes Agent:
- Dockerfile based on debian:13.4 with all deps
- Entrypoint that bootstraps .env, config.yaml, SOUL.md on first run
- CI workflow to build, test, and push to DockerHub
- Documentation for interactive, gateway, and upgrade workflows
Closes #850, #913.
Changes vs original PR:
- Removed pre-created legacy cache/platform dirs from entrypoint
(image_cache, audio_cache, pairing, whatsapp/session) — these are
now created on demand by the application using the consolidated
layout from get_hermes_dir()
- Moved docs from docs/docker.md to website/docs/user-guide/docker.md
and added to Docusaurus sidebar
Co-authored-by: benbarclay <benbarclay@users.noreply.github.com>
2026-03-28 22:21:48 -07:00
|
|
|
|
|
|
|
|
COPY . /opt/hermes
|
|
|
|
|
WORKDIR /opt/hermes
|
|
|
|
|
|
2026-03-30 15:19:52 -05:00
|
|
|
# Install Python and Node dependencies in one layer, no cache
|
|
|
|
|
RUN pip install --no-cache-dir -e ".[all]" --break-system-packages && \
|
|
|
|
|
npm install --prefer-offline --no-audit && \
|
2026-03-30 17:38:07 -05:00
|
|
|
npx playwright install --with-deps chromium --only-shell && \
|
2026-03-30 15:27:11 -05:00
|
|
|
cd /opt/hermes/scripts/whatsapp-bridge && \
|
|
|
|
|
npm install --prefer-offline --no-audit && \
|
|
|
|
|
npm cache clean --force
|
feat(docker): add Docker container for the agent (salvage #1841) (#3668)
Adds a complete Docker packaging for Hermes Agent:
- Dockerfile based on debian:13.4 with all deps
- Entrypoint that bootstraps .env, config.yaml, SOUL.md on first run
- CI workflow to build, test, and push to DockerHub
- Documentation for interactive, gateway, and upgrade workflows
Closes #850, #913.
Changes vs original PR:
- Removed pre-created legacy cache/platform dirs from entrypoint
(image_cache, audio_cache, pairing, whatsapp/session) — these are
now created on demand by the application using the consolidated
layout from get_hermes_dir()
- Moved docs from docs/docker.md to website/docs/user-guide/docker.md
and added to Docusaurus sidebar
Co-authored-by: benbarclay <benbarclay@users.noreply.github.com>
2026-03-28 22:21:48 -07:00
|
|
|
|
|
|
|
|
WORKDIR /opt/hermes
|
|
|
|
|
RUN chmod +x /opt/hermes/docker/entrypoint.sh
|
|
|
|
|
|
|
|
|
|
ENV HERMES_HOME=/opt/data
|
|
|
|
|
VOLUME [ "/opt/data" ]
|
2026-03-30 15:19:52 -05:00
|
|
|
ENTRYPOINT [ "/opt/hermes/docker/entrypoint.sh" ]
|