fix: docker file

This commit is contained in:
shinya
2025-06-23 23:20:19 +08:00
parent d25a961024
commit 5ea45af106

View File

@@ -25,9 +25,6 @@ COPY . .
# 生成生产构建
RUN pnpm run build
# 移除 devDependencies仅保留生产依赖减小体积
RUN pnpm prune --prod
# ---- 第 3 阶段:生成运行时镜像 ----
FROM node:20-alpine AS runner