dovecot/Dockerfile

31 lines
907 B
Docker
Raw Normal View History

2016-11-01 15:11:03 +00:00
FROM quay.io/thallian/confd-env:latest
2016-07-06 08:58:48 +00:00
2017-06-13 11:59:39 +00:00
RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp g++ openldap-dev dovecot-dev make tar
ADD i_zero.patch /usr/include/dovecot/i_zero.patch
WORKDIR /usr/include/dovecot
RUN patch -p1 < i_zero.patch
RUN rm /usr/include/dovecot/i_zero.patch
2016-08-24 11:04:00 +00:00
RUN mkdir /tmp/pigeonhole
RUN wget -qO- https://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.18.tar.gz | tar -xz -C /tmp/pigeonhole --strip 1
2016-08-24 11:04:00 +00:00
WORKDIR /tmp/pigeonhole
RUN ./configure --with-ldap=yes --with-dovecot=/usr/lib/dovecot
RUN make && make install
2016-08-24 12:19:40 +00:00
RUN rm -r /tmp/pigeonhole
WORKDIR /
2016-08-24 11:04:00 +00:00
2016-08-24 11:16:41 +00:00
RUN apk del g++ openldap-dev dovecot-dev make tar
2016-07-06 08:58:48 +00:00
2016-07-14 07:59:48 +00:00
RUN addgroup -g 1111 vmail
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail
2016-07-06 08:58:48 +00:00
2016-07-14 07:59:48 +00:00
RUN mkdir /var/lib/vmail/sieve-after/
RUN chown vmail:vmail /var/lib/vmail/sieve-after/
2016-07-06 08:58:48 +00:00
2017-06-13 11:59:39 +00:00
EXPOSE 143 4190 6334 7777
2016-07-06 08:58:48 +00:00
VOLUME /var/lib/vmail/mail/ /etc/ssl/mail
ADD /rootfs /