Lockfiles still pointed at registry.npmmirror.com after switching the
Docker registry, which caused ECONNRESET on victory-vendor during frontend builds.
Co-authored-by: Cursor <cursoragent@cursor.com>
Staging Docker builds were hanging ~25m then dying with Exit handler never
called because registry.npmjs.org resets TLS from the runner. Point npm ci
at npmmirror (rewrite lockfile tarball hosts for the build only).
Alpine npm ci kept dying with Exit handler never called on Docker
Desktop; nested retries only burned hours. Use Debian + a single
cached npm ci, and update the Gitea node image mirror.
Docker Desktop OOM can kill npm mid-install on the Windows staging
runner. Retry npm ci, then fall back to install, and document the
≥8GB RAM requirement.