Skip to content

Commit a329b9e

Browse files
committed
fix(docker): keep runtime prune offline
1 parent e427262 commit a329b9e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ FROM build AS runtime-assets
122122
ARG OPENCLAW_EXTENSIONS
123123
ARG OPENCLAW_BUNDLED_PLUGIN_DIR
124124
RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \
125+
pnpm store add source-map@0.6.1 && \
125126
CI=true pnpm prune --prod \
126127
--config.offline=true \
127128
--config.supportedArchitectures.os=linux \

src/dockerfile.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ describe("Dockerfile", () => {
9393
const dockerfile = await readFile(dockerfilePath, "utf8");
9494

9595
expect(dockerfile).toContain("pnpm install --frozen-lockfile \\");
96+
expect(dockerfile).toContain("pnpm store add source-map@0.6.1 && \\");
9697
expect(dockerfile).toContain("CI=true pnpm prune --prod \\");
9798
expect(dockerfile).toContain("--config.offline=true");
9899
expect(dockerfile.split("--config.supportedArchitectures.os=linux").length - 1).toBe(2);

0 commit comments

Comments
 (0)