重构前端ui

This commit is contained in:
qaq
2025-07-03 11:12:42 +08:00
parent f1cab0563a
commit 47696e928b
17 changed files with 3388 additions and 85 deletions
+21
View File
@@ -0,0 +1,21 @@
# 多阶段构建 - 构建阶段
FROM node:20.19.0 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# 生产阶段
FROM nginx:stable-alpine AS production-stage
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]