From 67ea0ba1f6584fa0d210eddd2433fff1e4fcc959 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Sun, 1 Mar 2026 13:59:19 +0100 Subject: [PATCH] fix: move ENV PATH before npm ci to bust stale Docker cache layer The cached npm ci layer predates the ENV PATH instruction, so tsc was never on PATH when the build ran. Moving ENV PATH earlier changes the cache key and forces a fresh install. Co-Authored-By: Claude Sonnet 4.6 --- sync/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/Dockerfile b/sync/Dockerfile index 1538d3f..68392f7 100644 --- a/sync/Dockerfile +++ b/sync/Dockerfile @@ -1,10 +1,10 @@ # Stage 1: build TypeScript FROM node:20-alpine AS builder WORKDIR /app +ENV PATH="/app/node_modules/.bin:$PATH" RUN apk add --no-cache python3 make g++ COPY package*.json ./ RUN npm ci --include=dev -ENV PATH="/app/node_modules/.bin:$PATH" COPY tsconfig.json ./ COPY src ./src RUN npm run build && npm prune --production