ci: cache next.js build output and parallelize checks with build

This commit is contained in:
ginnoir
2026-06-02 02:05:34 -05:00
parent 65d36bab4e
commit 389ff6040b
2 changed files with 27 additions and 4 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ ENV CI=true
ENV NEXT_TELEMETRY_DISABLED=1
COPY . .
RUN pnpm install --offline --frozen-lockfile
RUN pnpm build
RUN --mount=type=cache,id=famapp-nextjs,target=/app/.next/cache \
pnpm build
# ── Stage 3: production runtime ───────────────────────────────────────────────
FROM node:22-alpine AS runner