Release/test 合并上生产 #2

Merged
admin merged 736 commits from release/test into main 2026-09-17 11:50:56 +08:00
Showing only changes of commit cefb1529fc - Show all commits
+2 -1
View File
@@ -16,7 +16,8 @@ RUN pnpm config set registry https://registry.npmmirror.com && \
pnpm install --frozen-lockfile
COPY . .
RUN pnpm test && pnpm build
# Docker 构建时同机还会运行多项服务,限制 Vitest 并发以避免测试超时。
RUN pnpm test -- --maxWorkers=1 && pnpm build
# 运行阶段:仅保留构建产物和 Nginx,不包含源码或 node_modules。
FROM nginx:1.27-alpine