buildx/dendrite/Dockerfile

15 lines
386 B
Docker
Raw Normal View History

2021-01-17 14:26:31 +00:00
FROM golang:buster as builder
ARG DEBIAN_FRONTEND=noninteractive
COPY dendrite /dendrite
WORKDIR /dendrite
2021-01-21 07:38:44 +00:00
RUN rm -rf .git && mkdir bin && ./build.sh
2021-01-17 14:26:31 +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"]