From 5be20ebd083d0a2fa08660d8b13bb9d56d22c666 Mon Sep 17 00:00:00 2001 From: stephan Date: Fri, 8 May 2026 15:35:54 +0200 Subject: [PATCH] Add docs/.npmrc so the Docker build COPY succeeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dockerfile's `COPY package.json package-lock.json .npmrc ./` requires the file to exist; the build was failing on a fresh clone with `failed to compute cache key … "/.npmrc": not found`. Contents are intentionally minimal: silence npm's audit/funding chatter during CI/Docker builds and enable legacy-peer-deps so Astro 6 + Starlight 0.38 + @vite-pwa/astro can install together without npm's strict peer resolver rejecting the lockfile. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/.npmrc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/.npmrc diff --git a/docs/.npmrc b/docs/.npmrc new file mode 100644 index 0000000..8775e73 --- /dev/null +++ b/docs/.npmrc @@ -0,0 +1,8 @@ +# Suppress audit + funding noise during Docker builds — keeps the build log +# focused on real errors and slightly speeds up `npm ci`. +fund=false +audit=false +# Be lenient with peer-dep resolution. Astro 6 + Starlight 0.38 + the +# vite-pwa plugin sometimes disagree about Vite peer ranges; npm's strict +# resolver fails the install where the lockfile is fine. +legacy-peer-deps=true