| | |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>com.spotify</groupId> |
| | | <artifactId>dockerfile-maven-plugin</artifactId> |
| | | <configuration> |
| | | <!-- Dockerfile目录指定 --> |
| | | <dockerfile>Dockerfile</dockerfile> |
| | | <repository>${docker.repostory}/${docker.image.prefix}/${project.artifactId}</repository> |
| | | <!-- 生成镜像标签 如不指定 默认为latest --> |
| | | <tag>1.0.1</tag> |
| | | <!--<tag>${project.version}</tag>--> |
| | | <buildArgs> |
| | | <JAR_FILE>./target/${project.build.finalName}.jar</JAR_FILE> |
| | | </buildArgs> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | </project> |