mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 12:52:24 +03:00

This should significantly speedup building the pinecone and yggdrasil demos, as they now reuse the new `dendrite:buildcache`, which already builds all binaries.
17 lines
787 B
Text
17 lines
787 B
Text
FROM --platform=${BUILDPLATFORM} ghcr.io/element-hq/dendrite:buildcache AS build
|
|
|
|
FROM alpine:latest
|
|
LABEL org.opencontainers.image.title="Dendrite (Yggdrasil demo)"
|
|
LABEL org.opencontainers.image.description="Next-generation Matrix homeserver written in Go"
|
|
LABEL org.opencontainers.image.source="https://github.com/matrix-org/dendrite"
|
|
LABEL org.opencontainers.image.licenses="AGPL-3.0-only OR LicenseRef-Element-Commercial"
|
|
|
|
COPY --from=build /out/create-account /usr/bin/create-account
|
|
COPY --from=build /out/generate-config /usr/bin/generate-config
|
|
COPY --from=build /out/generate-keys /usr/bin/generate-keys
|
|
COPY --from=build /out/dendrite-demo-yggdrasil /usr/bin/dendrite-demo-yggdrasil
|
|
|
|
VOLUME /etc/dendrite
|
|
WORKDIR /etc/dendrite
|
|
|
|
ENTRYPOINT ["/usr/bin/dendrite-demo-yggdrasil"]
|