#FROM node:12.13.1 FROM hub.mashibing.cn/jenkins/node:v1 WORKDIR /workload RUN git clone -b msb_test http://oauth2:glpat-J_xPfndR9qruR3a897ZK@internel-git.mashibing.cn/yanxuan-frontend/shop-pc.git RUN cd shop-pc && npm config set registry https://registry.npm.taobao.org && npm i && npm run build:test COPY shop-pc/nuxt.config.js /workload/nuxt.config.js COPY shop-pc/package.json /workload/package.json COPY shop-pc/.nuxt /workload/.nuxt COPY shop-pc/static /workload/static EXPOSE 3000 CMD npm run start