使用jib插件打包springboot应用程序为docker镜像:
maven 插件配置:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>1.0.2</version>
<configuration>
<allowInsecureRegistries>true</allowInsecureRegistries>
<from>
<image>my_registry_host/jdk:8u172</image>
</from>
<to>
<image>my_registry_host/jib/jib-image</image>
<tags>
<tag>v0.1</tag>
</tags>
</to>
</configuration>
</plugin>