fix: pnpm build

This commit is contained in:
MasutaYunikon committed 2026-05-08 02:13:32 +02:00
1 parent 7cdfe13151
commit fcb176d519
4 files changed
+4 -9

No files matched your search

+2 -2
View File
@@ -1,13 +1,13 @@
FROM node:22-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack enable && corepack prepare pnpm@10 --activate
COPY . /app
WORKDIR /app
# ── Dépendances prod ───────────────────────────────────────────
FROM base AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
# ── Build ──────────────────────────────────────────────────────
FROM base AS build