使用 npm 替代 bun
All checks were successful
构建并运行 Docker / build (push) Successful in 12m23s

This commit is contained in:
2025-07-29 14:06:33 +08:00
parent 3b9ed0dcca
commit 745360f93f

View File

@ -8,13 +8,8 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app
# 安装依赖
COPY package.json bun.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f bun.lock ]; then bun install --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
COPY package.json ./
RUN npm install
# 构建阶段
FROM base AS builder