2021-01-17 14:26:31 +00:00
|
|
|
FROM golang:buster as builder
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2021-01-31 12:10:27 +00:00
|
|
|
ARG VERSION
|
|
|
|
WORKDIR /
|
|
|
|
RUN git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git && \
|
|
|
|
cd dendrite && rm -rf .git && ./build.sh
|
2021-01-17 14:26:31 +00:00
|
|
|
|
2021-01-19 10:41:57 +00:00
|
|
|
FROM debian:buster-20210111-slim
|
2021-01-17 14:26:31 +00:00
|
|
|
|
|
|
|
COPY --from=builder /dendrite/bin/ /usr/local/bin/
|
|
|
|
COPY --from=builder /dendrite/dendrite-config.yaml /usr/local/share/
|
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|