2017-09-22 11:14:50 +00:00
|
|
|
FROM registry.gitlab.com/thallian/docker-confd-env:master
|
2016-07-06 08:58:48 +00:00
|
|
|
|
2017-09-25 08:16:16 +00:00
|
|
|
ADD i_zero.patch /usr/include/dovecot/i_zero.patch
|
|
|
|
|
|
|
|
RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp ca-certificates g++ openldap-dev dovecot-dev make tar && \
|
|
|
|
cd /usr/include/dovecot && \
|
|
|
|
patch -p1 < i_zero.patch && \
|
|
|
|
rm /usr/include/dovecot/i_zero.patch && \
|
|
|
|
mkdir /tmp/pigeonhole && \
|
|
|
|
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 && \
|
|
|
|
cd /tmp/pigeonhole && \
|
|
|
|
./configure --with-ldap=yes --with-dovecot=/usr/lib/dovecot && \
|
|
|
|
make && make install && \
|
|
|
|
rm -r /tmp/pigeonhole && \
|
|
|
|
apk del g++ openldap-dev dovecot-dev make tar
|
|
|
|
|
|
|
|
WORKDIR /
|
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 /
|