refactor Dockerfile
This commit is contained in:
parent
e332e0979e
commit
a019e05937
@ -1,31 +1,19 @@
|
|||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
||||||
COPY ./conf/postfix /etc/postfix
|
|
||||||
COPY ./conf/dovecot /etc/dovecot
|
|
||||||
COPY ./conf/opendkim /etc/opendkim
|
|
||||||
#ADD ./conf/clamav /etc/clamav
|
|
||||||
COPY ./run.sh /
|
|
||||||
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
||||||
&& apk add \
|
&& apk add \
|
||||||
postfix postfix-pgsql \
|
postfix postfix-pgsql \
|
||||||
dovecot-pgsql dovecot-lmtpd dovecot-pop3d \
|
dovecot-pgsql dovecot-lmtpd \
|
||||||
opendkim opendkim-utils \
|
opendkim opendkim-utils \
|
||||||
&& rm -rf /var/cache/apk
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
#SMTP
|
#COPY ./conf/postfix /etc/postfix
|
||||||
EXPOSE 25
|
#COPY ./conf/dovecot /etc/dovecot
|
||||||
#POP3
|
#COPY ./conf/opendkim /etc/opendkim
|
||||||
EXPOSE 110
|
#COPY ./conf/clamav /etc/clamav
|
||||||
#IMAP
|
COPY ./run.sh /
|
||||||
EXPOSE 143
|
|
||||||
#SMTPS
|
# pop3, dovecot-submission removed
|
||||||
EXPOSE 465
|
EXPOSE 25 110 143 465 587 993 995
|
||||||
#Submission
|
|
||||||
EXPOSE 587
|
|
||||||
#IMAPS
|
|
||||||
EXPOSE 993
|
|
||||||
#POP3S
|
|
||||||
EXPOSE 995
|
|
||||||
|
|
||||||
ENTRYPOINT ["/run.sh"]
|
ENTRYPOINT ["/run.sh"]
|
Loading…
x
Reference in New Issue
Block a user