Docker - yibinericxia/documents GitHub Wiki
Docker image can be automatically generated by Maven if it is used for your build. The following is a sample of configuration:
<plugin>
<groupId>com.spotify</groupId>
<aritfactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile-maven-version}</version>
<configuration>
<repository>${registry}/${organization}/${project.artiificatId}<repository>
<tag>${project.version}</tag>
<dockerfile>${dockerfile}</dockerfile>
<buildArgs>
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
<BUILD_DIR>$(project.build.directory}</BUILD_DIR>
</buildArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>