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:
parent
81184040bb
commit
9f6e9c3c40
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue