fix: 构建阶段安装全部依赖
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 16s
CI/CD Pipeline / Unit Tests (push) Successful in 10s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 14m21s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 16s
CI/CD Pipeline / Unit Tests (push) Successful in 10s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 14m21s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
移除 --production 标志,确保 devDependencies(如 typescript)可用 后续可优化 release 阶段只包含生产依赖
This commit is contained in:
parent
525c433937
commit
6b65e1bcfa
@ -8,7 +8,8 @@ COPY package.json bun.lock ./
|
||||
|
||||
# 阶段 2: 安装依赖
|
||||
FROM base AS install
|
||||
RUN bun install --frozen-lockfile --production
|
||||
# 构建阶段需要全部依赖(包括 devDependencies)
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# 阶段 3: 构建应用
|
||||
FROM base AS build
|
||||
|
||||
Loading…
Reference in New Issue
Block a user