From 2eeb2066635d190926d923a88578342cd8929520 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Sun, 1 Mar 2026 13:45:02 +0100 Subject: [PATCH] fix: copy node_modules from build context instead of running npm install The server's npm proxy intercepts and silently fails devDependency installs inside Docker. Bundle node_modules directly from the local checkout where they are known-good. Co-Authored-By: Claude Sonnet 4.6 --- sync/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/Dockerfile b/sync/Dockerfile index f0d5f20..28dc51f 100644 --- a/sync/Dockerfile +++ b/sync/Dockerfile @@ -1,8 +1,8 @@ -# Stage 1: build TypeScript + install all deps +# Stage 1: build TypeScript — copy pre-installed node_modules from context FROM node:20-slim AS builder WORKDIR /app COPY package.json package-lock.json ./ -RUN NODE_ENV=development npm install --registry https://registry.npmjs.org +COPY node_modules ./node_modules COPY tsconfig.json ./ COPY src ./src RUN ./node_modules/.bin/tsc && npm prune --production