From 0cfebd9773b9f5a7c0ea8a885e73e699b705d73b Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 23 Oct 2024 17:28:15 +0800 Subject: [PATCH] perf: remove cache mount --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9be7c19e0..e739a9a2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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