From 18288cf8f3f4161f54aa468641a3082e8c7d202f Mon Sep 17 00:00:00 2001 From: Avnyr Date: Wed, 28 Jan 2026 20:49:16 +0100 Subject: [PATCH] chore(docker): enforce `--force` flag for `pnpm install` across all Dockerfiles --- backend/Dockerfile | 4 ++-- documentation/Dockerfile | 4 ++-- frontend/Dockerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 2f0620d..1111da5 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -15,13 +15,13 @@ COPY documentation/package.json ./documentation/ # Utilisation du cache pour pnpm et installation figée RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force COPY . . # Deuxième passe avec cache pour les scripts/liens RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force RUN pnpm run --filter @memegoat/backend build RUN pnpm deploy --filter=@memegoat/backend --prod --legacy /app diff --git a/documentation/Dockerfile b/documentation/Dockerfile index 003da53..0a2a255 100644 --- a/documentation/Dockerfile +++ b/documentation/Dockerfile @@ -14,13 +14,13 @@ COPY documentation/package.json ./documentation/ # Montage du cache pnpm RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force COPY . . # Deuxième passe avec cache pour les scripts/liens RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force # Build avec cache Next.js RUN --mount=type=cache,id=next-docs-cache,target=/usr/src/app/documentation/.next/cache \ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e29df65..0f07c35 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -14,13 +14,13 @@ COPY documentation/package.json ./documentation/ # Montage du cache pnpm RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force COPY . . # Deuxième passe avec cache pour les scripts/liens RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ - pnpm install --frozen-lockfile + pnpm install --frozen-lockfile --force # Build avec cache Next.js RUN --mount=type=cache,id=next-cache,target=/usr/src/app/frontend/.next/cache \