fix(docker): preserve functional image dependencies · openclaw/openclaw@445dda5
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -113,12 +113,10 @@ describe("docker build cache layout", () => {
|
113 | 113 | expect(dockerfile).toContain( |
114 | 114 | "npm install -g --prefix /tmp/openclaw-prefix /tmp/openclaw-current.tgz --no-fund --no-audit", |
115 | 115 | ); |
116 | | -expect(dockerfile).toContain( |
| 116 | +expect(dockerfile).not.toContain( |
117 | 117 | "cp -a /tmp/openclaw-prefix/lib/node_modules/. /app/node_modules/", |
118 | 118 | ); |
119 | | -expect(dockerfile).toContain( |
120 | | -"find /tmp/openclaw-prefix/lib/node_modules/openclaw -mindepth 1 -maxdepth 1 ! -name node_modules", |
121 | | -); |
| 119 | +expect(dockerfile).toContain("cp -a /tmp/openclaw-prefix/lib/node_modules/openclaw/. /app/"); |
122 | 120 | expect(dockerfile).toContain("rm -rf /app/node_modules/openclaw"); |
123 | 121 | expect(dockerfile).toContain("ln -sf /app /app/node_modules/openclaw"); |
124 | 122 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。