|
@@ -68,6 +68,21 @@
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>dockerfile-maven-plugin</artifactId>
|
|
|
+ <version>1.4.12</version>
|
|
|
+ <configuration>
|
|
|
+ <repository>registry.cn-shenzhen.aliyuncs.com/qmth/aliyun-ops</repository>
|
|
|
+ <tag>${project.version}</tag>
|
|
|
+ <contextDirectory>${project.baseDir}</contextDirectory>
|
|
|
+ <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
|
|
|
+ <pullNewerImage>true</pullNewerImage>
|
|
|
+ <buildArgs>
|
|
|
+ <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
|
|
|
+ </buildArgs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|