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
This commit is contained in:
Randall Stillwell 2026-03-12 12:26:08 -05:00
parent 81184040bb
commit 9f6e9c3c40

View file

@ -17,7 +17,7 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_OPTIONS="--max-old-space-size=1536" 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 # Standalone prisma install for runtime db push
FROM base AS prisma-cli FROM base AS prisma-cli