fix(docker): upgrade npm to v11 to match lockfile version

npm 10.9.4 bundled with node:22-alpine handles optional peer
dependencies differently than npm 11, causing build failures
when resolving vitest peer dep from @angular-devkit/build-angular.
This commit is contained in:
Johannes Millan 2026-01-10 19:08:38 +01:00
parent 70b8ed1eca
commit 187bfaf24c

View file

@ -5,6 +5,9 @@ WORKDIR /repo
RUN apk add --no-cache openssl libc6-compat
# Upgrade npm to match lockfile version (npm 11)
RUN npm install -g npm@11
# Root package + lock (for workspace install)
COPY package.json package-lock.json ./
COPY packages/shared-schema/package.json ./packages/shared-schema/