From d903e9dc6baff2db645e1d15521d95104abc9f93 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 7 Mar 2024 13:08:45 +0000 Subject: [PATCH] prune deps, don't bump their versions after trimming --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a8d82fb158..1999066679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,9 @@ ARG NODE_ENV=production RUN node scripts/trim-deps.mjs RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ - pnpm i --aggregate-output + pnpm prune +RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ + pnpm i --frozen-lockfile --aggregate-output FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-slim AS runner