I am trying to achieve Continuous Integration/Delivery with Docker Cloud.
On Docker Cloud i connected my bit bucket repository, so on every commit docker build will initiate on Docker Cloud, but automated build are failing, these are the logs
ERROR: Build failed: ADD failed: stat /var/lib/docker/tmp/docker-builder406751627/target/springtest.jar: no such file or directory ERROR: Build failed with exit code 2 ERROR: Build in 'master' (094341b2) failed in 0:02:10
This is my Docker File
FROM java:8
VOLUME /tmp
ADD /target/springtest.jar springtest.jar
ENTRYPOINT ["java","-jar","springtest.jar"]
However if i try to build the same thing on my Local Docker Terminal i am not getting Issues, i am using this command mvn package docker:build
and its creating Images Successfully
So why with the same Dockerfile automated build ? Any other step i need to do?