aboutsummaryrefslogtreecommitdiff
path: root/build/docker/README.md
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-11-02 14:04:08 +0000
committerGitHub <noreply@github.com>2022-11-02 14:04:08 +0000
commitca8bc873801c77f67378e542686d19ed388bba53 (patch)
tree1ab8f7f19362217d18b4020e9799eba0dc81ffef /build/docker/README.md
parent51ab0a8ccfab539e127df0d97c29f364fbb57864 (diff)
Multi-stage Docker builds (#2850)
This builds on @S7evinK's work to make multi-stage Docker builds. Now that we can build SQLite without Cgo this should be much simpler and should make Docker builds in CI significantly faster. Co-authored-by: Till Faelligen <tfaelligen@gmail.com> Co-authored-by: Till Faelligen <davidf@element.io> Co-authored-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
Diffstat (limited to 'build/docker/README.md')
-rw-r--r--build/docker/README.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/build/docker/README.md b/build/docker/README.md
index 261519fd..6111b830 100644
--- a/build/docker/README.md
+++ b/build/docker/README.md
@@ -9,11 +9,16 @@ They can be found on Docker Hub:
## Dockerfiles
-The `Dockerfile` builds the base image which contains all of the Dendrite
-components. The `Dockerfile.component` file takes the given component, as
-specified with `--buildarg component=` from the base image and produce
-smaller component-specific images, which are substantially smaller and do
-not contain the Go toolchain etc.
+The `Dockerfile` is a multistage file which can build all four Dendrite
+images depending on the supplied `--target`. From the root of the Dendrite
+repository, run:
+
+```
+docker build . --target monolith -t matrixdotorg/dendrite-monolith
+docker build . --target polylith -t matrixdotorg/dendrite-monolith
+docker build . --target demo-pinecone -t matrixdotorg/dendrite-demo-pinecone
+docker build . --target demo-yggdrasil -t matrixdotorg/dendrite-demo-yggdrasil
+```
## Compose files