<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dockerfile on PlumePHP</title><link>https://plumephp.com/tags/dockerfile/</link><description>Recent content in Dockerfile on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 22 Nov 2025 03:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/dockerfile/index.xml" rel="self" type="application/rss+xml"/><item><title>Dockerfile 最佳实践：多阶段构建、镜像优化与安全加固</title><link>https://plumephp.com/dockerfile-best-practices/</link><pubDate>Sat, 22 Nov 2025 03:00:00 +0800</pubDate><guid>https://plumephp.com/dockerfile-best-practices/</guid><description>&lt;p&gt;&lt;strong&gt;Dockerfile 的写法直接决定了镜像大小、构建速度和安全性&lt;/strong&gt;。糟糕的 Dockerfile 可能产生 2GB+ 的臃肿镜像，而优化后的版本可以缩小到 100MB 以内。本文覆盖生产级 Dockerfile 的 8 大最佳实践，并提供可直接复用的模板。&lt;/p&gt;</description></item></channel></rss>