2 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
3 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 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 • about 2 months ago
2 months ago
can you add node_modules to the .dockerignore and try again?
Status changed to Solved chandrika • about 2 months ago