mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:20:43 +00:00
fix(docker): avoid package node_modules copy conflicts
This commit is contained in:
@@ -116,6 +116,9 @@ describe("docker build cache layout", () => {
|
||||
expect(dockerfile).toContain(
|
||||
"cp -a /tmp/openclaw-prefix/lib/node_modules/. /app/node_modules/",
|
||||
);
|
||||
expect(dockerfile).toContain(
|
||||
"find /tmp/openclaw-prefix/lib/node_modules/openclaw -mindepth 1 -maxdepth 1 ! -name node_modules",
|
||||
);
|
||||
expect(dockerfile).toContain("rm -rf /app/node_modules/openclaw");
|
||||
expect(dockerfile).toContain("ln -sf /app /app/node_modules/openclaw");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user