10 months ago
[stage-0 8/10] RUN --mount=type=cache,id=s/215943e9-1ca5-4468-ac66-3efa2bc3a340-node_modules/cache,target=/app/node_modules/.cache npm run build
process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/215943e9-1ca5-4468-ac66-3efa2bc3a340-node_modules/cache,target=/app/node_modules/.cache npm run build
25 |
26 |
-------------------
ERROR: failed to build: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
Error: Docker build failed
Pinned Solution
10 months ago
can you add node_modules to the .dockerignore and try again?
3 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 how do i fix this?
- 🧵 Build Failure After Plan Migration
- 🧵 Build Error Nextjs
- 🧵 backend is not deployed
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 10 months ago
10 months ago
can you add node_modules to the .dockerignore and try again?
Status changed to Solved chandrika • 10 months ago