分离装库和构建步骤,减少网络流量小号
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-10 02:55:13 +08:00
parent d7f1136708
commit a485c269b0

View File

@ -2,8 +2,13 @@ FROM oven/bun:1 AS base
WORKDIR /app
FROM base AS build
COPY bun.lock .
COPY package.json .
RUN bun install --frozen-lockfile
COPY . .
RUN bun install --frozen-lockfile && bun run build
RUN bun run build
FROM base AS product
COPY --from=build /app/build /app