mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-23 16:54:08 +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
423 B
Bash
Executable File
12 lines
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} |