更新 Dockerfile

fix/comment-0701
覃昌波 2 years ago
parent 20b9748f64
commit 4669a69b12

@ -2,12 +2,15 @@
FROM hub.mashibing.cn/jenkins/node:v1 FROM hub.mashibing.cn/jenkins/node:v1
WORKDIR /workload WORKDIR /workload
COPY nuxt.config.js /workload/nuxt.config.js RUN git clone -b msb_test http://oauth2:glpat-J_xPfndR9qruR3a897ZK@internel-git.mashibing.cn/yanxuan-frontend/shop-pc.git
COPY package.json /workload/package.json
COPY .nuxt /workload/.nuxt RUN cd shop-pc && npm config set registry https://registry.npm.taobao.org && npm i && npm run build:test
COPY static /workload/static
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
RUN npm install --registry=https://registry.npm.taobao.org
EXPOSE 3000 EXPOSE 3000
CMD npm run start CMD npm run start

Loading…
Cancel
Save