mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
16 lines
455 B
Docker
16 lines
455 B
Docker
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
|
|
|
|
FROM debian:buster-20210208-slim
|
|
|
|
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"]
|