aboutsummaryrefslogtreecommitdiff
path: root/tests/docker/cyrus/Dockerfile
blob: 67b4e11a07edfe8155c9b72db965f6366fcba6b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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" ]