Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,266 views 2 9
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