我们的服务使用的是 nodejs , 基于
ant-design的web服务,在本地 npm run build可以成功,但是在,在容器镜像服务中构建始终不成功,请问是什么原因吗?
一下是点击构建之后的错误日志:
node_modules/@babel/runtime/helpers/setPrototypeOf.js
[1A[1A[1A[1A[1A[1A[1A[G
Compiling
● webpack █████████████████████████ building modules (21%) 97/105 modules 8 acti
ve
node_modules/@babel/runtime/helpers/setPrototypeOf.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ant-design-pro@2.0.0 build:pro: `cross-env SERVER_URL=http://localhost:8000 PACK_URL=http://peu13ly3f.bkt.clouddn.com/space/ PROXY_URL=http://47.95.219.105:9200 BUILD_ENV=pro umi build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ant-design-pro@2.0.0 build:pro script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-27T12_23_24_796Z-debug.log
The command '/bin/sh -c npm run build:pro' returned a non-zero code: 1
{"exitCode":8, "message":"docker build failed or timeout "}