Skip to content

Commit

Permalink
perf: remove cache mount
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Oct 23, 2024
1 parent e1a2a2d commit 0cfebd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cfebd9

Please sign in to comment.