From bcea9dc2f6dcf8bd943f07ff5e056656768ccbbd Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Sun, 31 May 2026 15:43:19 +0330 Subject: [PATCH] Bust npm ci cache, add post-install next verification The npm ci layer was cached with a broken result (node_modules/next missing). Changing the RUN command text invalidates that cache entry and forces a fresh install. The added post-install check will show the exact npm ci error if next is still missing, instead of failing silently. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f47986f..535dce5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,11 @@ COPY package.json package-lock.json .npmrc ./ RUN if [ -n "$NPM_TOKEN" ]; then \ echo "//mirror.soroushasadi.com/repository/npm-group/:_authToken=${NPM_TOKEN}" >> .npmrc ; \ fi \ - && npm ci + && npm ci \ + && echo "=== post-install check ===" \ + && (test -d node_modules/next \ + && echo "OK: node_modules/next found: $(cat node_modules/next/package.json | grep '\"version\"' | head -1)" \ + || (echo "FATAL: node_modules/next is missing after npm ci" && exit 1)) ENV NEXT_TELEMETRY_DISABLED=1 COPY . .