From c300e1d7a6e8fd15c0170b2a337af19d70b2f53d Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sat, 13 Dec 2025 12:13:49 +0100 Subject: [PATCH] chore: optimize Dockerfile by using cache for pnpm installation to improve build performance --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a67edd5..7eb0292 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ WORKDIR /app # Copy package files COPY package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile +RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store \ + pnpm install --frozen-lockfile # Rebuild the source code only when needed FROM base AS builder