
On Wed, Dec 16, 2020 at 10:29:45AM +0800, Luan Shengde wrote:
Signed-off-by: Luan Shengde <shdluan@163.com> --- container/fetch-mail/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 container/fetch-mail/Dockerfile
diff --git a/container/fetch-mail/Dockerfile b/container/fetch-mail/Dockerfile new file mode 100644 index 0000000..7be6b21 --- /dev/null +++ b/container/fetch-mail/Dockerfile @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +FROM centos
which version centos all ok?choose a version that you have test more better.
+MAINTAINER Luan Shengde <shdluan@163.com> +ENV DEBIAN_FRONTEND noninteractive
DEBIAN_FRONTEND is necessary in centos?
+RUN yum update -y +RUN yum install -y procmail fetchmail
can write like this RUN yum update -y && \ yum install -y procmail fetchmail
+COPY fetchmailrc.template /home/mailer/.fetchmailrc +COPY procmailrc.template /home/mailer/.procmailrc +COPY run.sh /home/mailer/
ditto
+ +RUN chmod 600 /home/mailer/.fetchmailrc +RUN chmod 600 /home/mailer/.procmailrc +RUN chown -R mailer:mailer /home/mailer
ditto Thanks, Yinsi
2.23.0