build: :新增自动构建发布脚本

This commit is contained in:
2022-09-21 17:10:00 +08:00
parent a0fef0454d
commit a95a7a20d3
3 changed files with 69 additions and 0 deletions

10
Dockerfile Normal file
View File

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