parent
b3b6db82e5
commit
56991e2fba
@ -1,16 +1,13 @@
|
|||||||
FROM node:12.13.1
|
FROM node:12.13.1
|
||||||
|
|
||||||
WORKDIR /workload
|
WORKDIR /workload
|
||||||
|
|
||||||
RUN git clone -b msb_test http://oauth2:glpat-J_xPfndR9qruR3a897ZK@internel-git.mashibing.cn/yanxuan-frontend/shop-pc.git
|
COPY nuxt.config.js /workload/nuxt.config.js
|
||||||
|
COPY package.json /workload/package.json
|
||||||
RUN cd shop-pc && npm config set registry https://registry.npm.taobao.org && npm i && npm run build:test
|
COPY .nuxt /workload/.nuxt
|
||||||
|
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 config set registry https://registry.npm.taobao.org \
|
||||||
|
&& npm install
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD npm run start
|
CMD npm run start
|
||||||
|
Loading…
Reference in new issue