fix: add docker cache for pnpm installations

This commit is contained in:
SennayT
2026-06-30 09:54:07 +00:00
parent 7b98f74445
commit 3c5f5b5861
6 changed files with 52 additions and 4 deletions

View File

@@ -9,6 +9,10 @@ ARG NEXT_PUBLIC_API_URL=http://localhost:4000
FROM node:24.15.0-alpine AS base
RUN apk add --no-cache libc6-compat
# Store pnpm's content-addressable store under PNPM_HOME so the BuildKit
# `--mount=type=cache,target=/pnpm/store` cache actually persists deps across builds.
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /app