updata Dockerfile
Signed-off-by: Luan Shengde luanshengde2@huawei.com --- container/send-mail/Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/container/send-mail/Dockerfile b/container/send-mail/Dockerfile index 36b145c..d151bda 100644 --- a/container/send-mail/Dockerfile +++ b/container/send-mail/Dockerfile @@ -2,18 +2,8 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
FROM debian -MAINTAINER luanshd0525@163.com +MAINTAINER shdluan@163.com ENV DEBIAN_FRONTEND noninteractive
-COPY conf/sources.list* /etc/apt/ 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-mail.rb /usr/local/bin/ - -CMD ["/usr/local/bin/mail-post.rb"] + apt-get install -y ruby-mail ruby-json ruby-sinatra
On Tue, Oct 27, 2020 at 10:52:12AM +0800, Luan Shengde wrote:
updata Dockerfile
updata => update ? Thanks, Liushaofei
Signed-off-by: Luan Shengde luanshengde2@huawei.com
container/send-mail/Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/container/send-mail/Dockerfile b/container/send-mail/Dockerfile index 36b145c..d151bda 100644 --- a/container/send-mail/Dockerfile +++ b/container/send-mail/Dockerfile @@ -2,18 +2,8 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
FROM debian -MAINTAINER luanshd0525@163.com +MAINTAINER shdluan@163.com ENV DEBIAN_FRONTEND noninteractive
-COPY conf/sources.list* /etc/apt/ 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-mail.rb /usr/local/bin/
-CMD ["/usr/local/bin/mail-post.rb"]
- apt-get install -y ruby-mail ruby-json ruby-sinatra
-- 2.23.0