mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
ca8bc87380
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>
12 lines
No EOL
423 B
Bash
Executable file
12 lines
No EOL
423 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
cd $(git rev-parse --show-toplevel)
|
|
|
|
TAG=${1:-latest}
|
|
|
|
echo "Building tag '${TAG}'"
|
|
|
|
docker build . --target monolith -t matrixdotorg/dendrite-monolith:${TAG}
|
|
docker build . --target polylith -t matrixdotorg/dendrite-monolith:${TAG}
|
|
docker build . --target demo-pinecone -t matrixdotorg/dendrite-demo-pinecone:${TAG}
|
|
docker build . --target demo-yggdrasil -t matrixdotorg/dendrite-demo-yggdrasil:${TAG} |