
+# 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.
OK, I will add the version Thanks, Luan Shengde
+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