diff --git a/Dockerfile b/Dockerfile index e85a49c649ff..9e8b99afeccf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -122,6 +122,7 @@ FROM build AS runtime-assets ARG OPENCLAW_EXTENSIONS ARG OPENCLAW_BUNDLED_PLUGIN_DIR RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \ + pnpm store add source-map@0.6.1 && \ CI=true pnpm prune --prod \ --config.offline=true \ --config.supportedArchitectures.os=linux \ diff --git a/src/dockerfile.test.ts b/src/dockerfile.test.ts index 5aa1a921c35d..0ccd56a13e82 100644 --- a/src/dockerfile.test.ts +++ b/src/dockerfile.test.ts @@ -93,6 +93,7 @@ describe("Dockerfile", () => { const dockerfile = await readFile(dockerfilePath, "utf8"); expect(dockerfile).toContain("pnpm install --frozen-lockfile \\"); + expect(dockerfile).toContain("pnpm store add source-map@0.6.1 && \\"); expect(dockerfile).toContain("CI=true pnpm prune --prod \\"); expect(dockerfile).toContain("--config.offline=true"); expect(dockerfile.split("--config.supportedArchitectures.os=linux").length - 1).toBe(2);