chore(docker): enforce --force flag for pnpm install across all Dockerfiles
This commit is contained in:
@@ -15,13 +15,13 @@ COPY documentation/package.json ./documentation/
|
|||||||
|
|
||||||
# Utilisation du cache pour pnpm et installation figée
|
# Utilisation du cache pour pnpm et installation figée
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile --force
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Deuxième passe avec cache pour les scripts/liens
|
# Deuxième passe avec cache pour les scripts/liens
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
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 run --filter @memegoat/backend build
|
||||||
RUN pnpm deploy --filter=@memegoat/backend --prod --legacy /app
|
RUN pnpm deploy --filter=@memegoat/backend --prod --legacy /app
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ COPY documentation/package.json ./documentation/
|
|||||||
|
|
||||||
# Montage du cache pnpm
|
# Montage du cache pnpm
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile --force
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Deuxième passe avec cache pour les scripts/liens
|
# Deuxième passe avec cache pour les scripts/liens
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile --force
|
||||||
|
|
||||||
# Build avec cache Next.js
|
# Build avec cache Next.js
|
||||||
RUN --mount=type=cache,id=next-docs-cache,target=/usr/src/app/documentation/.next/cache \
|
RUN --mount=type=cache,id=next-docs-cache,target=/usr/src/app/documentation/.next/cache \
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ COPY documentation/package.json ./documentation/
|
|||||||
|
|
||||||
# Montage du cache pnpm
|
# Montage du cache pnpm
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile --force
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Deuxième passe avec cache pour les scripts/liens
|
# Deuxième passe avec cache pour les scripts/liens
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile --force
|
||||||
|
|
||||||
# Build avec cache Next.js
|
# Build avec cache Next.js
|
||||||
RUN --mount=type=cache,id=next-cache,target=/usr/src/app/frontend/.next/cache \
|
RUN --mount=type=cache,id=next-cache,target=/usr/src/app/frontend/.next/cache \
|
||||||
|
|||||||
Reference in New Issue
Block a user