FROM golang:buster as builder ARG DEBIAN_FRONTEND=noninteractive COPY dendrite /dendrite WORKDIR /dendrite RUN rm -rf .git && mkdir bin && ./build.sh FROM debian:buster-20210111-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"]