diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 939fe7f..258836f 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -23,7 +23,10 @@ COPY --from=deps /app/.npmrc ./ COPY --from=deps /app/node_modules ./node_modules COPY tsconfig.base.json ./ COPY apps/web/ apps/web/ -RUN cd apps/web && npx next build +# Hoisted layout: `next` binary is in /app/node_modules/.bin/next. +# Neither `npx next` nor `pnpm run build` resolve it from apps/web cwd +# because that subtree has no node_modules. Call the binary directly. +RUN cd apps/web && /app/node_modules/.bin/next build # ---- Production ---- FROM node:22-slim AS production