ci: 🆕 新增构建发布功能

This commit is contained in:
2023-04-15 22:31:14 +08:00
parent e33bc1e655
commit 66b6afce40
3 changed files with 79 additions and 4 deletions

View File

@@ -1,4 +1,16 @@
# Dockerfile
FROM nginx:alpine
COPY dist/ /usr/share/nginx/html/
EXPOSE 80
# FROM node:12 AS builder
# WORKDIR /app
# ADD package.json /app/
# RUN npm install \
# --registry=https://registry.npm.taobao.org \
# --disturl=https://npm.taobao.org/dist
# 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 dist/ /html