From 48d1d9e64f875106d96140f03fa8fa3dc42cca0c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 26 Mar 2026 08:19:01 -0400 Subject: [PATCH] fix: remove npm self-update in Docker build; use npm ci npm install -g npm@latest corrupts npm's own module tree inside Alpine, breaking subsequent installs. Use npm ci instead (faster, deterministic). Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d2f5e0e..c5d5342 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:22-alpine AS build-frontend WORKDIR /build COPY frontend/package.json frontend/package-lock.json* ./ -RUN npm install -g npm@latest --quiet && npm install +RUN npm ci --quiet COPY frontend/ . RUN npm run build