Signed-off-by: Luan Shengde luanshengde2@huawei.com --- container/send-internet-mail/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 container/send-internet-mail/Dockerfile
diff --git a/container/send-internet-mail/Dockerfile b/container/send-internet-mail/Dockerfile new file mode 100644 index 0000000..b8bc3a5 --- /dev/null +++ b/container/send-internet-mail/Dockerfile @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +FROM debian + +MAINTAINER shdluan@163.com + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && \ + apt-get install -y ruby-mail ruby-json ruby-sinatra && \ + ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ + echo 'Asia/Shanghai' > /etc/timezone + +EXPOSE 25 + +COPY mail-post.rb /usr/local/bin/ + +COPY send-internet-mail.rb /usr/local/bin/ + +CMD ["/usr/local/bin/mail-post.rb"]