Merge pull request 'build: 🏗️ 调整构建方式,从本地构建后上传dist目录' (#86) from ci into develop
一些检查失败了
continuous-integration/drone/push Build is failing

Reviewed-on: #86
这个提交包含在:
施海荣 2022-06-07 10:37:06 +08:00
当前提交 5b17f49619
共有 3 个文件被更改,包括 11 次插入9 次删除

查看文件

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

1
.gitignore vendored
查看文件

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

查看文件

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