aboutsummaryrefslogtreecommitdiff
path: root/build/docker/Dockerfile.monolith
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-10-20 16:11:24 +0100
committerGitHub <noreply@github.com>2020-10-20 16:11:24 +0100
commit39c7a8915ccba3ac4d281ae7938f2e912ad966b4 (patch)
tree321ebe39b305dea1d844e9bd922939aa0ea4d70d /build/docker/Dockerfile.monolith
parent6c3c621de09a62c7ec8d89b2d8e6a9d73833fd0b (diff)
Multi-personality polylith binary (#1552)
* Initial work oon multipersonality binary * Remove old binaries * Monolith and polylith binaries * Better logging * dendrite-poly-multi * Fix path * Copyright notices etc * Tweaks * Update Docker, INSTALL.md * Take first argument if flags package doesn't find any args * Postgres 9.6 or later, fix some more Docker stuff * Don't create unnecessary e2ekey DB * Run go mod tidy
Diffstat (limited to 'build/docker/Dockerfile.monolith')
-rw-r--r--build/docker/Dockerfile.monolith13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/docker/Dockerfile.monolith b/build/docker/Dockerfile.monolith
new file mode 100644
index 00000000..3e9d0cba
--- /dev/null
+++ b/build/docker/Dockerfile.monolith
@@ -0,0 +1,13 @@
+FROM matrixdotorg/dendrite:latest AS base
+
+FROM alpine:latest
+
+COPY --from=base /build/bin/dendrite-monolith-server /usr/bin
+COPY --from=base /build/bin/goose /usr/bin
+COPY --from=base /build/bin/create-account /usr/bin
+COPY --from=base /build/bin/generate-keys /usr/bin
+
+VOLUME /etc/dendrite
+WORKDIR /etc/dendrite
+
+ENTRYPOINT ["/usr/bin/dendrite-monolith-server"] \ No newline at end of file