From dee27200cea43fb8359d6f251c195281cc2252dc Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Sun, 1 Mar 2026 13:33:42 +0100 Subject: [PATCH] fix: use npm install and explicit package-lock.json COPY in sync Dockerfile Avoids stale Docker layer cache issue where tsc was not found because an old npm ci layer (without dev deps) was cached on the build host. Co-Authored-By: Claude Sonnet 4.6 --- sync/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sync/Dockerfile b/sync/Dockerfile index a3bd4d0..b7918a7 100644 --- a/sync/Dockerfile +++ b/sync/Dockerfile @@ -1,8 +1,8 @@ # Stage 1: build TypeScript + install all deps FROM node:20-slim AS builder WORKDIR /app -COPY package*.json ./ -RUN npm ci --include=dev +COPY package.json package-lock.json ./ +RUN npm install COPY tsconfig.json ./ COPY src ./src RUN ./node_modules/.bin/tsc && npm prune --production @@ -15,3 +15,4 @@ COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist CMD ["node", "dist/index.js"] +