windows SpringBoot JAR包 打docker镜像到远程镜像仓库
一、pom.xml
在需要打包的项目pom.xml文件中加入
<properties>
<docker.image.prefix>远程镜像仓库地址</docker.image.prefix>
<dockerfile-maven-plugin.version>1.4.12</dockerfile-maven-plugin.version>
</properties>
远程镜像仓库地址一般由:远程镜像仓库地址+空间组成,以自己的路径为准
加入maven插件“dockerfile-maven-plugin”
<build>
<plugins>
<!-- docker打包插件 -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile-maven-plugin.version}</version