Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Joydeep Roy May 5, 2018

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 ./docker-entrypoint.sh /docker-entrypoint.sh

ENTRYPOINT ["/docker-entrypoint.sh"]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
2s

1 comment

ymchandra April 30, 2019

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

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events