This repository has been archived on 2021-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
mail/dovecot/Dockerfile

25 lines
910 B
Docker
Raw Permalink Normal View History

2019-03-31 00:16:15 +01:00
FROM alpine
2018-03-08 15:45:31 +01:00
RUN apk add --no-cache \
dovecot \
2019-03-31 00:16:15 +01:00
dovecot-ldap \
dovecot-lmtpd
2018-03-08 15:45:31 +01:00
RUN sed -i 's/#!include auth-ldap.conf.ext/!include auth-ldap.conf.ext/' /etc/dovecot/conf.d/10-auth.conf \
2018-03-15 16:32:17 +01:00
&& sed -i 's/!include auth-passwdfile.conf.ext/#!include auth-passwdfile.conf.ext/' /etc/dovecot/conf.d/10-auth.conf \
&& sed -i 's/#first_valid_uid = .*/first_valid_uid = 100/g' /etc/dovecot/conf.d/10-mail.conf \
2018-03-24 21:52:41 +01:00
&& sed -i 's/#last_valid_uid = .*/last_valid_uid = 100/g' /etc/dovecot/conf.d/10-mail.conf
2018-03-08 15:45:31 +01:00
2018-03-15 16:32:17 +01:00
RUN addgroup -S vmail \
&& adduser -S -g '' -H -D -h /var/vmail vmail vmail
2018-03-08 15:45:31 +01:00
COPY 10-logging.conf /etc/dovecot/conf.d/10-logging.conf
2019-03-31 00:16:15 +01:00
COPY 10-master.conf /etc/dovecot/conf.d/10-master.conf
COPY 10-ssl.conf /etc/dovecot/conf.d/10-ssl.conf
2018-03-08 15:45:31 +01:00
COPY auth-ldap.conf.ext /etc/dovecot/conf.d/auth-ldap.conf.ext
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2018-03-24 18:52:46 +01:00
EXPOSE 143