Skip to content

docker/agent.Dockerfile: DeepSeek (dsh) plugin install fails on a fresh build (pnpm not found) #352

Description

@timkjr

What happened

Building the agent base image from a clean checkout (node scripts/build-agent-image.mjs --no-cache) fails at the DeepSeek Harness step:

#12 0.505 dsh: initialized profile dsh-tui at /home/agent/.dsh/profiles/dsh-tui
#12 0.508 dsh: pnpm not found on PATH — install pnpm to manage profile plugins
ERROR: process "... dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui ..." did not complete successfully: exit code: 127

Where

docker/agent.Dockerfile, the RUN ... dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui ... step in the agent user-setup layer.

Repro

node scripts/build-agent-image.mjs --no-cache

on a fresh checkout of master (no local branch changes).

Cause (best guess, not confirmed)

dsh's plugin installer appears to now require pnpm on PATH to manage profile plugins, and the base node:22-bookworm-slim image doesn't have it installed. This is presumably a behavior change in a recent @deepseek-ai/dsh release, since the Dockerfile step itself is unchanged.

Impact

Docker cases (the whole agent base image) can't currently be built from scratch on a fresh checkout, blocking Docker-mode session support entirely until fixed.

Suggested fix

Add pnpm to the base image (either via corepack enable — already bundled with Node 22 — or npm install -g pnpm) before the dsh plugin install step.


Found incidentally while verifying Docker support for the OMP integration PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions