mirror of
https://github.com/Gloridust/WechatOnCloud.git
synced 2026-08-30 18:21:27 -07:00
Dockerfile 的 COPY web/ ./ 与 COPY server/ ./ 会把构建上下文里的 node_modules 一并拷入, 若宿主先前在本地装过依赖(如 macOS),其平台特定二进制(@esbuild/darwin-arm64)会覆盖镜像内 npm install 的 Linux 依赖 → tsx/esbuild 报 "Host version ... does not match binary version" 起不来。 加 .dockerignore 排除 **/node_modules(及 web/dist 等),保证本地构建与 CI(干净 checkout)一致。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
515 B
515 B