Ver código fonte

Merge pull request 'build: 🏗️ 调整构建方式,从本地构建后上传dist目录' (#86) from ci into develop

Reviewed-on: http://git.picaiba.com/mt-ck-00a/mt-ck-wms-ui/pulls/86
pull/87/head
施海荣 2 anos atrás
pai
commit
5b17f49619
3 arquivos alterados com 11 adições e 9 exclusões
  1. +0
    -1
      .dockerignore
  2. +0
    -1
      .gitignore
  3. +11
    -7
      Dockerfile

+ 0
- 1
.dockerignore Ver arquivo

@@ -1,7 +1,6 @@
.vscode/
.idea/
node_modules/
dist/
**/*.log
LICENSE
README.md

+ 0
- 1
.gitignore Ver arquivo

@@ -1,6 +1,5 @@
.DS_Store
node_modules/
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*


+ 11
- 7
Dockerfile Ver arquivo

@@ -1,10 +1,14 @@
FROM node:12 AS builder
WORKDIR /app
ADD package.json /app/
RUN npm config set registry https://registry.npmmirror.com && npm install git+https://gitee.com/shihairong/raphael && npm install
ADD . /app
RUN npm run build:prod
#FROM node:12 AS builder
#WORKDIR /app
#ADD package.json /app/
#RUN npm config set registry https://registry.npmmirror.com && npm install git+https://gitee.com/shihairong/raphael && npm install
#ADD . /app
#RUN npm run build:prod
#
#FROM busybox
#LABEL maintainer thomas.hairong@gmail.com
#COPY --from=builder /app/dist /html

FROM busybox
LABEL maintainer thomas.hairong@gmail.com
COPY --from=builder /app/dist /html
COPY dist/ /html

Carregando…
Cancelar
Salvar