# 如何减小 discourse Docker 镜像大小？

**URL:** https://meta.discourse.org/t/how-can-i-minimize-the-discourse-docker-image-size/378249
**Category:** Self-hosting
**Created:** [2025年八月12日 06:19 UTC](https://meta.discourse.org/t/how-can-i-minimize-the-discourse-docker-image-size/378249 "2025-08-12T06:19:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [2025年八月12日 06:52 UTC](https://meta.discourse.org/t/how-can-i-minimize-the-discourse-docker-image-size/378249/2 "2025-08-12T06:52:56Z")

</div>

您也可以——我这里还有一个正在进行的计划，旨在通过此操作来精简镜像：

> <https://github.com/discourse/discourse_docker/pull/966>
>
> web\_only images would not install postgres or redis, minimizing image sizes for …setups that do not require those components.
> 
> release and dev images still install postgres and redis, but do it later in the process.
> 
> A savings of ~80MB compressed (~260MB uncompressed)
> 
> \`\`\`
> current slim: 576.66MB release: 967.01MB. new slim: 496.74MB release: 969.13MB
> \`\`\`

回复：镜像启动缓慢——我们目前也在为此做些准备。

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-minimize-the-discourse-docker-image-size/378249)._
