# Building Discourse image from discourse/discourse - how to install plugins

**URL:** https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969
**Category:** Self-hosting
**Tags:** docker, install, hosting
**Created:** [February 2, 2026, 6:10pm UTC](https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969 "2026-02-02T18:10:55Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 4, 2026, 8:43pm UTC](https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969/8 "2026-02-04T20:43:48Z")

</div>

> [@stevejr](#):
>
> My current approach is that the `db:mirgate` and precompile would be performed in an initContainer in my pod.

That should work.

If you’re interested in zero-downtime upgrades you should use `SKIP_POST_DEPLOYMENT_MIGRATIONS` and after the old pods are dead do the migration again with something like `rake db:ensure_post_migrations db:migrate`

---

_[View the full topic](https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969)._
