Skip to content

The agent that grows with you

fix(docker): provision ffmpeg and ripgrep through PM

ethernet689ec30f340d
diff --git a/Dockerfile b/Dockerfile
index f10f5a7acd4..6963e25bd0a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -72,7 +72,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/tools
# names (see .hermes/plans/termux-removal-commit-spec.md).
RUN apt-get -o Acquire::Retries=3 update && \
apt-get -o Acquire::Retries=3 install -y --no-install-recommends \
- ca-certificates curl iputils-ping python3 python-is-python3 ripgrep ffmpeg gcc g++ make cmake python3-dev python3-venv libffi-dev libolm-dev libatomic1 procps git openssh-client docker-cli xz-utils \
+ ca-certificates curl iputils-ping python3 python-is-python3 gcc g++ make cmake python3-dev python3-venv libffi-dev libolm-dev libatomic1 procps git openssh-client docker-cli xz-utils \
libasound2t64 libatk-bridge2.0-0t64 libatk1.0-0t64 libatspi2.0-0t64 libcairo2 libcups2t64 libdbus-1-3 libgbm1 libglib2.0-0t64 libnspr4 libnss3 libpango-1.0-0 libx11-6 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 && \
rm -rf /var/lib/apt/lists/*
@@ -206,8 +206,9 @@ COPY hermes_constants.py hermes_constants.py
COPY hermes_cli/__init__.py hermes_cli/runtime_state.py hermes_cli/
COPY scripts/bundles/payload.py scripts/bundles/payload.py
RUN set -eu; \
- python3 -c 'from pm import ensure; [ensure(name, explicit=True) for name in ("uv", "chromium", "npm")]'; \
- python3 -c 'from pathlib import Path; from pm import installed_package; [Path("/usr/local/bin", command).symlink_to(installed_package(package).binary) for command, package in (("python3", "python"), ("node", "node"), ("npm", "npm"))]'; \
+ python3 -c 'from pm import ensure; [ensure(name, explicit=True) for name in ("uv", "chromium", "npm", "ffmpeg", "ripgrep")]'; \
+ python3 -c 'from pathlib import Path; from pm import installed_package; [Path("/usr/local/bin", command).symlink_to(installed_package(package).binary) for command, package in (("python3", "python"), ("node", "node"), ("npm", "npm"), ("ffmpeg", "ffmpeg"), ("rg", "ripgrep"))]; Path("/usr/local/bin/ffprobe").symlink_to(installed_package("ffmpeg").binary.with_name("ffprobe"))'; \
+ ffmpeg -version | head -1; ffprobe -version | head -1; rg --version | head -1; \
python3 -c 'import shutil; from pathlib import Path; from pm import env_for; Path("/usr/local/bin/npx").symlink_to(shutil.which("npx", path=env_for("npm", base_env={})["PATH"]))'; \
node --version; npm --version; \
browser_bin="$(python3 -c 'from pm import installed_package; print(installed_package("chromium").binary)')"; \
diff --git a/website/docs/user-guide/docker.md b/website/docs/user-guide/docker.md
index 9b18f9f8949..1ae551ca882 100644
--- a/website/docs/user-guide/docker.md
+++ b/website/docs/user-guide/docker.md
@@ -525,8 +525,8 @@ The image uses Debian 13.4 and includes:
- The curated extras `all`, `messaging`, `otlp`, `anthropic`, `bedrock`,
`azure-identity`, and `matrix`. This is not `--all-extras`.
- Node.js 26 and npm from the digest-pinned Node source image.
-- PM-pinned uv, Chromium, and Chromium headless shell in `/opt/hermes/tools`.
-- System Git, ripgrep, FFmpeg, OpenSSH, Docker CLI, and Chromium shared libraries.
+- PM-pinned uv, Chromium, Chromium headless shell, FFmpeg, and ripgrep in `/opt/hermes/tools`.
+- System Git, OpenSSH, Docker CLI, and Chromium shared libraries.
- Prebuilt TUI/dashboard assets and baked Photon sidecar dependencies.
- s6-overlay for supervision and zombie-process cleanup.
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md
index f4255e94b16..da78c8215dc 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md
@@ -278,8 +278,8 @@ docker run -d \
- 按提交的 `uv.lock` 同步的 Python 3.14 环境,然后无依赖地安装 Hermes 源码。
- 选定的 extras:`all`、`messaging`、`otlp`、`anthropic`、`bedrock`、`azure-identity` 和 `matrix`,不是 `--all-extras`。
- 从摘要固定的 Node 镜像提供的 Node.js 26 和 npm。
-- PM 固定版本的 uv、Chromium 和 headless shell,位于 `/opt/hermes/tools`。
-- 系统 Git、ripgrep、FFmpeg、OpenSSH、Docker CLI 和 Chromium 所需共享库。
+- PM 固定版本的 uv、Chromium、headless shell、FFmpeg 和 ripgrep,位于 `/opt/hermes/tools`。
+- 系统 Git、OpenSSH、Docker CLI 和 Chromium 所需共享库。
- 预构建的 TUI/dashboard 和 Photon sidecar 依赖,以及 s6-overlay。
Chromium 由 PM 准备,不使用 `npx playwright install`。