From fdb7a94529115a855440d105ccb2718fe11b6d09 Mon Sep 17 00:00:00 2001 From: busya Date: Thu, 11 Jun 2026 16:31:07 +0300 Subject: [PATCH] fix(docker): add --legacy-peer-deps to npm ci for svelte-markdown@0.4.1 compat svelte-markdown@0.4.1 declares peer dependency svelte@^4.0.0, but the project uses svelte@^5.43.8. In clean Docker builds, npm ci strictly validates peer deps and fails. Adding --legacy-peer-deps works around the incompatibility until svelte-markdown supports Svelte 5. --- docker-compose.e2e.yml | 2 +- docker/all-in-one.Dockerfile | 2 +- docker/frontend.Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.e2e.yml b/docker-compose.e2e.yml index 62dff56a..46a1359b 100644 --- a/docker-compose.e2e.yml +++ b/docker-compose.e2e.yml @@ -69,7 +69,7 @@ services: - /tmp/playwright-report:/workspace/frontend/playwright-report command: > sh -c " - npm ci && + npm ci --legacy-peer-deps && npx playwright install chromium && npx playwright test " diff --git a/docker/all-in-one.Dockerfile b/docker/all-in-one.Dockerfile index 3f185ff0..cba531d6 100644 --- a/docker/all-in-one.Dockerfile +++ b/docker/all-in-one.Dockerfile @@ -16,7 +16,7 @@ WORKDIR /app/frontend # Install deps (layer cache when package.json unchanged) COPY frontend/package.json frontend/package-lock.json* ./ -RUN npm ci --prefer-offline --no-audit --no-fund +RUN npm ci --prefer-offline --no-audit --no-fund --legacy-peer-deps # Build frontend COPY frontend/ ./ diff --git a/docker/frontend.Dockerfile b/docker/frontend.Dockerfile index d1b452dd..aa6f85d9 100644 --- a/docker/frontend.Dockerfile +++ b/docker/frontend.Dockerfile @@ -13,7 +13,7 @@ FROM node:20-alpine AS build WORKDIR /app/frontend COPY frontend/package*.json ./ -RUN npm ci +RUN npm ci --legacy-peer-deps COPY frontend/ ./ RUN npm run build