<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<imageName>abhayjava/${project.artifactId}</imageName>
<dockerDirectory>${project.basedir}/docker</dockerDirectory>
<resources>
<!-- copy the service's jar file from target into the root directory of the image -->
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
folder structure of maven project is
spring-boot-poc
src
docker(this contains docker file)
target
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
How to reproduce
pom is as follows:-
folder structure of maven project is spring-boot-poc src docker(this contains docker file) target
docker file FROM openjdk ADD /target/springboot-poc-0.0.1-SNAPSHOT.jar springboot-poc.jar EXPOSE 8080 ENTRYPOINT ["java","-jar","springboot-poc.jar"]
What do you expect
Should have built the image succefully
What happened instead
* Exception***