Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<imageName>${project.build.finalName}:${project.version}
</imageName>
<baseImage>base-tomcat:1.0</baseImage>
<resources>
<resource>
<targetPath>/usr/local/tomcat/webapps/</targetPath>
<directory>${project.basedir}/target/</directory>
<include>${project.build.finalName}.war</include>
</resource>
</resources>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment