perf: add BuildKit pnpm store cache mount

This commit is contained in:
2026-03-03 05:10:01 -08:00
parent 18ee430cac
commit 02717841a7
+4 -2
View File
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Bridge - Next.js standalone build
FROM node:18-alpine AS deps
RUN apk add --no-cache libc6-compat python3 make g++ git
@@ -11,8 +12,9 @@ COPY app/bridge/package.json ./app/bridge/
COPY pkg/core/package.json ./pkg/core/
COPY pkg/settings/package.json ./pkg/settings/
# Install dependencies
RUN pnpm install --no-frozen-lockfile
# Install dependencies (cache pnpm store across builds)
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
pnpm install --no-frozen-lockfile
# Builder stage
FROM node:18-alpine AS builder