aerogramme/tests/instrumentation/docker/cyrus/Dockerfile
2023-12-27 18:33:06 +01:00

15 lines
473 B
Docker

FROM debian:buster
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y cyrus-imapd cyrus-pop3d cyrus-nntpd cyrus-caldav cyrus-admin sasl2-bin && \
echo "admins: cyrus" >> /etc/imapd.conf && \
touch /var/lib/cyrus/tls_sessions.db && \
chown cyrus:mail /var/lib/cyrus/tls_sessions.db && \
mkdir /run/cyrus && \
chown -R cyrus:mail /run/cyrus
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
CMD [ "/usr/local/bin/entrypoint.sh" ]