docker-deploy/mail/Dockerfile
2021-12-21 03:14:57 +08:00

19 lines
501 B
Docker

FROM alpine:3.15
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk add \
postfix postfix-pgsql \
dovecot-pgsql dovecot-lmtpd \
opendkim opendkim-utils \
&& rm -rf /var/cache/apk/*
#COPY ./conf/postfix /etc/postfix
#COPY ./conf/dovecot /etc/dovecot
#COPY ./conf/opendkim /etc/opendkim
#COPY ./conf/clamav /etc/clamav
COPY ./run.sh /
# pop3, dovecot-submission removed
EXPOSE 25 110 143 465 587 993 995
ENTRYPOINT ["/run.sh"]