Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化容器构建的目录 #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vfhky
Copy link

@vfhky vfhky commented Feb 25, 2024

问题:在使用容器建构和打包jar文件时,目前的代码是把jar文件放在以构建产物命名的目录下的。例如:jar的构建产物是target/demo-0.0.1-SNAPSHOT.jar,那么使用容器构建时会再加一个目录target/demo-0.0.1-SNAPSHOT.jar,导致最后的产出结构是:target/demo-0.0.1-SNAPSHOT.jar/demo-0.0.1-SNAPSHOT.jar。

解决:容器构建和打包成镜像时使用固定的target目录即可,这样构建的产物目录结构就是:target/demo-0.0.1-SNAPSHOT.jar。

@bwcx-jzy
Copy link
Member

感谢反馈,但是此处不能只考虑 target 单一场景。

@bwcx-jzy
Copy link
Member

此 pr 暂时不考虑合并,后续我们验证一下问题是否存在

@bwcx-jzy
Copy link
Member

新版本已经修复,感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants