buildx/dendrite/Dockerfile

16 lines
455 B
Docker
Raw Normal View History

2021-01-17 14:26:31 +00:00
FROM golang:buster as builder
ARG DEBIAN_FRONTEND=noninteractive
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
FROM debian:buster-20210208-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"]