DockerDevOps后端+2+1Docker 多阶段构建与 BuildKit 缓存优化一个 Go 服务镜像从 1.2GB 优化到 18MB,构建时间从 180s 降到 25s。本文讲多阶段构建、distroless / scratch 基础镜像、BuildKit cache mount、Buildx 多架构构建。2026年7月30日·4 分钟阅读