<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring-Boot on 蒋大培的博客</title><link>https://ygwa.github.io/tags/spring-boot/</link><description>Recent content in Spring-Boot on 蒋大培的博客</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 03 Dec 2024 15:49:51 +0800</lastBuildDate><atom:link href="https://ygwa.github.io/tags/spring-boot/index.xml" rel="self" type="application/rss+xml"/><item><title>利用 Docker 分层，构建高效的 Spring Boot 镜像</title><link>https://ygwa.github.io/writings/spring-boot-docker-layer/</link><pubDate>Tue, 03 Dec 2024 15:49:51 +0800</pubDate><guid>https://ygwa.github.io/writings/spring-boot-docker-layer/</guid><description>&lt;p&gt;在实际项目中，我们偶尔会遇到由于客户部署环境的网络限制问题，导致 Docker 镜像的推送与拉取速度很慢，影响部署的效率。
最近接手的一个项目中，我就遇到了类似的情况，我们在客户的内网部署了 Docker 的私有仓库，Jenkins 打包完后需要推送到 Docker 仓库中。
由于客户基于安全要求对于内部网络之间的传输做了网速的限制，通过传统的 Spring Boot 的 FatJar 生成的 Docker 镜像过大，在每次推送镜像和拉取镜像都需要花不少时间。
我们在私有仓库部署的服务较多，对私有仓库的存储容量要求较高。&lt;/p&gt;</description></item></channel></rss>