This commit is contained in:
hailin 2025-07-28 15:42:30 +08:00
parent f4e9e72ecc
commit 5e8f5f50f3
1 changed files with 5 additions and 1 deletions

View File

@ -12,11 +12,15 @@ RUN yarn install --frozen-lockfile
COPY . .
# 构建生产环境代码
RUN yarn build
#RUN yarn build
# ✅ 添加调试输出:列出构建产物
RUN yarn build && ls -lh /app/dist && find /app/dist
# 导出阶段
FROM alpine:3.18 AS export
WORKDIR /export
# 仅导出编译产物
COPY --from=builder /app/dist ./dist