refactor Dockerfile
This commit is contained in:
parent
e332e0979e
commit
a019e05937
@ -1,31 +1,19 @@
|
||||
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 \
|
||||
&& apk add \
|
||||
postfix postfix-pgsql \
|
||||
dovecot-pgsql dovecot-lmtpd dovecot-pop3d \
|
||||
dovecot-pgsql dovecot-lmtpd \
|
||||
opendkim opendkim-utils \
|
||||
&& rm -rf /var/cache/apk
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
#SMTP
|
||||
EXPOSE 25
|
||||
#POP3
|
||||
EXPOSE 110
|
||||
#IMAP
|
||||
EXPOSE 143
|
||||
#SMTPS
|
||||
EXPOSE 465
|
||||
#Submission
|
||||
EXPOSE 587
|
||||
#IMAPS
|
||||
EXPOSE 993
|
||||
#POP3S
|
||||
EXPOSE 995
|
||||
#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"]
|
Loading…
x
Reference in New Issue
Block a user