What is this error while deploying github repo
ivikashgorai
FREEOP

10 months ago

✕ [stage-0 6/7] RUN --mount=type=cache,id=s/b50a6d4c-409e-49d7-9672-f317f3dde825-m2/repository,target=/app/.m2/repository chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install

process "/bin/bash -ol pipefail -c chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install" did not complete successfully: exit code: 1

May 08 23:43:54

Dockerfile:19

May 08 23:43:54

-------------------

May 08 23:43:54

17 | # build phase

May 08 23:43:54

18 | COPY . /app/.

May 08 23:43:54

19 | >>> RUN --mount=type=cache,id=s/b50a6d4c-409e-49d7-9672-f317f3dde825-m2/repository,target=/app/.m2/repository chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install

May 08 23:43:54

20 |

May 08 23:43:54

21 |

May 08 23:43:54

-------------------

May 08 23:43:54

ERROR: failed to solve: process "/bin/bash -ol pipefail -c chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install" did not complete successfully: exit code: 1

May 08 23:43:54

Error: Docker build failed

$10 Bounty

2 Replies

9 months ago

It just means that a command within your Dockerfile failed. Are you able to share the Dockerfile, and if you build the same image locally does it work there?


smolpaw
HOBBY

9 months ago

If you can share with us your entire deploy log and specially the dockerfile
my guess is a missing WORKDIR in one of your stages.


Loading...