From 9f6e9c3c405e40b8351ba8c6abbfd435264daaec Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Thu, 12 Mar 2026 12:26:08 -0500 Subject: [PATCH] Fix Docker build: use npx for next build command Bare `next build` fails in Docker (exit code 127) because node_modules/.bin is not in PATH. Use `npx next build` instead. Made-with: Cursor --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cbd8d2a..9eb18d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ COPY . . ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_OPTIONS="--max-old-space-size=1536" -RUN npx prisma generate && next build +RUN npx prisma generate && npx next build # Standalone prisma install for runtime db push FROM base AS prisma-cli