SpringBoot 微服务打包 Docker 镜像
- 总共五个步骤:
- 构建 springboot 项目
- 打包应用(这里是 jar 包 / war 包)
- 编写 dockerfile(可以直接在 idea 上面写,只需要安装一个插件 Docker integration)
- 构建镜像
- 将项目 jar 包和编写的 dockerfile 上传到服务器上,然后 build 构建镜像
- 发布运行与测试
(docker笔记):SpringBoot 微服务打包 Docker 镜像
猜你喜欢
转载自blog.csdn.net/baidu_41388533/article/details/108572846
今日推荐
周排行