ci: copy ui-svelte/.npmrc before npm ci in fork-cuda build
Build CUDA image (fork) / build (push) Successful in 12m49s

npm ci ran without .npmrc (legacy-peer-deps=true), failing on the
tailwind/vite peer dependency conflict. Copy .npmrc with the manifest.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-28 12:56:21 -04:00
parent 617c7dc6b9
commit 0292c90ca1
+4 -2
View File
@@ -16,8 +16,10 @@ ARG BASE_TAG=server-cuda-b9821
# ---- Stage 1: build the Svelte UI (embedded into the binary) ---- # ---- Stage 1: build the Svelte UI (embedded into the binary) ----
FROM node:22-bookworm-slim AS ui FROM node:22-bookworm-slim AS ui
WORKDIR /src/ui-svelte WORKDIR /src/ui-svelte
# Install deps first for layer caching. # Install deps first for layer caching. .npmrc carries legacy-peer-deps=true,
COPY ui-svelte/package.json ui-svelte/package-lock.json ./ # which the project relies on (tailwind/vite peer ranges), so copy it before
# npm ci or the strict resolver fails with ERESOLVE.
COPY ui-svelte/package.json ui-svelte/package-lock.json ui-svelte/.npmrc ./
RUN npm ci RUN npm ci
COPY ui-svelte/ ./ COPY ui-svelte/ ./
# `npm run build` is `vite build --emptyOutDir`; vite.config.ts writes to # `npm run build` is `vite build --emptyOutDir`; vite.config.ts writes to