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 \ && postconf -e "maillog_file = /dev/stdout" \ && rm -rf /var/cache/apk/* EXPOSE 25 465 CMD ["/usr/sbin/postfix", "start-fg"]