I have a simple Dockerfile in my spring boot as follow. I am able to build the image successfully locally, and can push using my credentials.
But my build keeps failing on every attempt to build automatically.
FROM openjdk:8-jdk-alpine LABEL maintainer="xxxxx@xxx.com" VOLUME /tmp EXPOSE 8080 ARG JAR_FILE=target/jollof.jar ADD ${JAR_FILE} jollof.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","- jar","/jollof.jar"]
From docker hub, I got this from the log.
Building in Docker Cloud's infrastructure... Cloning into '.'... Warning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xxx' to the list of known hosts. .... .... Step 6/7 : ADD ${JAR_FILE} jollof.jar ADD failed: stat /var/lib/docker/tmp/docker- builder674045875/target/jollof.jar: no such file or directory