docker 部署

pull/1/head
李强 2021-03-09 00:52:13 +08:00
parent 878e7d6b2d
commit 7e4f70c2a2
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
FROM node:12 FROM node:12
WORKDIR /ddvadmin-doc
RUN npm install --registry=https://registry.npm.taobao.org RUN npm install --registry=https://registry.npm.taobao.org
#RUN npm run build:prod RUN npm run build:prod
#CMD ["npm","run","dev"] #CMD ["npm","run","dev"]

View File

@ -1,4 +1,5 @@
FROM node:12 FROM node:12
WORKDIR /ddvadmin-ui
RUN npm install --registry=https://registry.npm.taobao.org RUN npm install --registry=https://registry.npm.taobao.org
RUN npm run build:prod RUN npm run build:prod
CMD ["npm","run","dev"] #CMD ["npm","run","dev"]