fix: build

This commit is contained in:
louis 2024-03-04 10:09:00 +08:00
parent e6202a8315
commit 18b0fefce8
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-l
# 基于prod-deps生成的依赖执行构建
FROM base AS builder
# RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build
# 将prod-deps生成的依赖拷贝到base/$PROJECT_DIR中,开始在builder构建阶段build,最后拷贝build生成的dist到base/$PROJECT_DIR中