|
|
|
@ -2,12 +2,15 @@
|
|
|
|
|
FROM hub.mashibing.cn/jenkins/node:v1
|
|
|
|
|
WORKDIR /workload
|
|
|
|
|
|
|
|
|
|
COPY nuxt.config.js /workload/nuxt.config.js
|
|
|
|
|
COPY package.json /workload/package.json
|
|
|
|
|
COPY .nuxt /workload/.nuxt
|
|
|
|
|
COPY static /workload/static
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN npm install --registry=https://registry.npm.taobao.org
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
CMD npm run start
|
|
|
|
|