From e72985a38cec9e31eb2c4b6fa012895ff07226a8 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 8 Jul 2022 11:47:59 +0200 Subject: Add a docker-compose spawning Dovecot+Cyrus+Maddy --- tests/docker/maddy/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/docker/maddy/Dockerfile (limited to 'tests/docker/maddy/Dockerfile') diff --git a/tests/docker/maddy/Dockerfile b/tests/docker/maddy/Dockerfile new file mode 100644 index 0000000..341e398 --- /dev/null +++ b/tests/docker/maddy/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:buster as builder + +WORKDIR /root +RUN apt-get update && apt-get install -y openssl && \ + openssl req -nodes -new -x509 -subj "/C=DW/ST=Sto/L=Ankh-Morpork /O=Unseen University/OU=Library/CN=Ook/emailAddress=ook@ook.ook" -keyout privkey.pem -out fullchain.pem + +FROM foxcpp/maddy:0.6.2 + +COPY --from=builder /root/privkey.pem /data/tls/privkey.pem +COPY --from=builder /root/fullchain.pem /data/tls/fullchain.pem + +ENV MADDY_DOMAIN=example.com MADDY_HOSTNAME=mx.example.com + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] -- cgit v1.2.3