ci: align gitea workflow and frontend build
CRM/ERP CI / Backend Tests (Python) (push) Successful in 1m57s
CRM/ERP CI / Frontend Build (Vue3 + Vite) (push) Successful in 48s
CRM/ERP CI / Docker Compose Build (push) Successful in 6s

This commit is contained in:
2026-05-11 21:47:54 +08:00
parent 7df1045e77
commit 5b41f28943
2 changed files with 17 additions and 17 deletions
+10 -10
View File
@@ -1,17 +1,17 @@
# ============================================================
# Stage 1: Build — 基于 Node 18 Alpine 构建 Vue3 前端产物
# ============================================================
FROM node:18-alpine AS builder
# Stage 1: Build — 基于 Node 20 Alpine 构建 Vue3 前端产物
# ============================================================
FROM node:20-alpine AS builder
WORKDIR /build
# 先拷贝依赖清单,利用 Docker 层缓存
COPY frontend/package.json frontend/package-lock.json* ./
RUN npm install
# 拷贝全部前端源码并执行生产构建
COPY frontend/ .
RUN npm install -D @types/node && npm run build
# 先拷贝依赖清单,利用 Docker 层缓存
COPY frontend/package.json frontend/package-lock.json* ./
RUN npm ci
# 拷贝全部前端源码并执行生产构建
COPY frontend/ .
RUN npm run build
# ============================================================
# Stage 2: Run — 极致轻量的 Nginx 运行时