Skip to content

Instantly share code, notes, and snippets.

@pubudu94
Last active June 5, 2018 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pubudu94/7955e3b86c781a218eea6eaf53ad0c51 to your computer and use it in GitHub Desktop.
Save pubudu94/7955e3b86c781a218eea6eaf53ad0c51 to your computer and use it in GitHub Desktop.
<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