Skip to content

Instantly share code, notes, and snippets.

@kartikshah
Created July 22, 2016 20:38
Show Gist options
  • Save kartikshah/45aebab8bec4178142e6db692a1c56d1 to your computer and use it in GitHub Desktop.
Save kartikshah/45aebab8bec4178142e6db692a1c56d1 to your computer and use it in GitHub Desktop.
docker maven plugin
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.10</version>
<configuration>
<serverId>docker-hub</serverId>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<dockerDirectory>src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment