Docker 在检查 core-js 依赖性时构建 React 应用程序时挂起

Docker hangs while building react app while checking on core-js dependency

这里是构建停止的地方。这是在 M1 Mac Mini 上,但已尝试在 arm64 和 x86_64 终端中构建,结果相同。

npm info lifecycle @babel/plugin-transform-sticky-regex@7.14.5~postinstall: @babel/plugin-transform-sticky-regex@7.14.5
npm info lifecycle @babel/plugin-transform-template-literals@7.14.5~postinstall: @babel/plugin-transform-template-literals@7.14.5
npm info lifecycle @babel/plugin-transform-typeof-symbol@7.14.5~postinstall: @babel/plugin-transform-typeof-symbol@7.14.5
npm info lifecycle core-js@2.6.12~postinstall: core-js@2.6.12
 > core-js@2.6.12 postinstall /app/frontend/node_modules/@babel/polyfill/node_modules/core-js
 > node -e "try{require('./postinstall')}catch(e){}"

很高兴提供更多信息,但目前我正在努力寻找相关信息。这比我以前去的更深入节点。

我应该注意到构建需要 Node v12.20.2。

我希望我找不到关于这个问题的讨论是因为它太愚蠢了,但我的问题很简单。

我正在尝试使用不支持 x64 的 docker 映像进行构建。

-_-

如果其他人有类似的问题,只需找到您正在构建的图像的 docker 中心页面,并仔细检查它是否确实支持您的计算机 运行 所采用的体系结构.