Failure in building Docker
hub3rthustler
PROOP

3 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

Solved$10 Bounty

3 Replies

Railway
BOT

3 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!


brody
EMPLOYEE

3 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 3 months ago


hub3rthustler
PROOP

3 months ago

I have build script in package.json

Attachments


fra
HOBBY

3 months ago

can you add node_modules to the .dockerignore and try again?


Status changed to Solved chandrika 3 months ago


Loading...