Skip to content

Commit 7c06ad5

Browse files
committed
pom配置文件构建项目镜像
1 parent 4ac98ea commit 7c06ad5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@
9494
<!--该镜像的容器启动后, 直接运行spring boot工程 | 容器启动时执行的命令 -->
9595
<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
9696
<!--<volumes>
97-
<volume></volume>
98-
</volumes>-->
97+
<volume>/home</volume>
98+
</volumes>
99+
-->
99100
<!-- 设置环境变量 | 类似于DockerDile的ENV -->
100101
<env>
101102
<MYSQL_IP>119.23.XXX.XXX</MYSQL_IP>

0 commit comments

Comments
 (0)