diff --git a/Dockerfile b/Dockerfile index 1185ada..f47986f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,10 @@ RUN if [ -n "$NPM_TOKEN" ]; then \ ENV NEXT_TELEMETRY_DISABLED=1 COPY . . -RUN npm run build +# Diagnose what's in .bin after install, then invoke next directly via node +# to bypass any PATH / symlink resolution issues with `npm run`. +RUN ls node_modules/.bin/next 2>&1 || echo "WARN: next not in .bin" ; \ + node node_modules/next/dist/bin/next build # --------------------------------------------------------------------------- # 2. Runner — minimal image. Standalone server + static assets only.