mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
perf: remove cache mount
This commit is contained in:
parent
e1a2a2dfe1
commit
0cfebd9773
@ -4,14 +4,14 @@ FROM --platform=$BUILDPLATFORM oven/bun:1 AS base
|
||||
FROM base AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lockb ./
|
||||
RUN --mount=type=cache,target=/root/.bun bun install --frozen-lockfile
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Stage 2: Build the application
|
||||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/root/.bun bun run build
|
||||
RUN bun run build
|
||||
|
||||
# Stage 3: Production image
|
||||
FROM oven/bun:1-alpine AS runner
|
||||
|
Loading…
Reference in New Issue
Block a user