It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Docker build is failing through bitbucket pipeline where working properly in local

While trying to build docker image from pipeline , its failing .

DockerFile :

FROM openjdk

VOLUME ./tmp/

COPY abc.jar app.jar

EXPOSE 8080 8443 8000

COPY ./ /

ENTRYPOINT ["/"]RUN chmod +x /docker-entrypoint.shCMD ["start"]


It's failing in STEP 3 , while COPY

cc1a78bfd46b: Pull complete6861473222a6: Pull complete7e0b9c3b5ae0: Pull complete3ec98735f56f: Pull complete55160131808f: Pull completea8dbacf623ff: Pull complete8145eb5a3756: Pull completee00673c707b5: Pull completeb21012f36779: Pull complete

Digest: sha256:ebc02db26801d79889a0893950163a7d5b7bc63e8b23a7665777357cebe696e6Status:

Downloaded newer image for openjdk:latest ---> c3e386dcd062Step

2/8 : VOLUME ./tmp/ ---> Running in bf3f3c3034c9Removing intermediate container bf3f3c3034c9 ---> 8e8d7cd27aceStep

3/8 : COPY abc.jar app.jar


COPY failed: stat /var/lib/docker/tmp/docker-builder599292381/abc.jar: no such file or directory
Build teardown

1 comment

Same issue for me as well. Any clues how to solve this?


Log in or Sign up to comment
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,594 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you