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 complete
6861473222a6: Pull complete
7e0b9c3b5ae0: Pull complete
3ec98735f56f: Pull complete
55160131808f: Pull complete
a8dbacf623ff: Pull complete
8145eb5a3756: Pull complete
e00673c707b5: Pull complete
b21012f36779: Pull complete
Digest: sha256:ebc02db26801d79889a0893950163a7d5b7bc63e8b23a7665777357cebe696e6
Status:
Downloaded newer image for openjdk:latest
---> c3e386dcd062
Step
2/8 : VOLUME ./tmp/
---> Running in bf3f3c3034c9
Removing intermediate container bf3f3c3034c9
---> 8e8d7cd27ace
Step
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