Skip to content

Commit 6062b14

Browse files
committed
🍪 feat(docker插件): 添加docker插件
1 parent b07d7f2 commit 6062b14

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3232
<java.version>1.8</java.version>
3333
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
34+
<docker.image.prefix>qianlq</docker.image.prefix>
3435
</properties>
3536

3637
<dependencies>
@@ -64,6 +65,23 @@
6465
<groupId>org.springframework.boot</groupId>
6566
<artifactId>spring-boot-maven-plugin</artifactId>
6667
</plugin>
68+
69+
<plugin>
70+
<groupId>com.spotify</groupId>
71+
<artifactId>docker-maven-plugin</artifactId>
72+
<version>0.4.13</version>
73+
<configuration>
74+
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
75+
<dockerDirectory>src/main/docker</dockerDirectory>
76+
<resources>
77+
<resource>
78+
<targetPath>/</targetPath>
79+
<directory>${project.build.directory}</directory>
80+
<include>${project.build.finalName}.jar</include>
81+
</resource>
82+
</resources>
83+
</configuration>
84+
</plugin>
6785
</plugins>
6886
</build>
6987

0 commit comments

Comments
 (0)