prune deps, don't bump their versions after trimming

This commit is contained in:
dakkar 2024-03-07 13:08:45 +00:00
parent e8cd49bf39
commit d903e9dc6b

View file

@ -62,7 +62,9 @@ ARG NODE_ENV=production
RUN node scripts/trim-deps.mjs RUN node scripts/trim-deps.mjs
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ 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 FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-slim AS runner