Signed-off-by: Luan Shengde luanshengde2@huawei.com --- container/mail-robot/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 container/mail-robot/Dockerfile
diff --git a/container/mail-robot/Dockerfile b/container/mail-robot/Dockerfile new file mode 100644 index 0000000..57307bf --- /dev/null +++ b/container/mail-robot/Dockerfile @@ -0,0 +1,20 @@ +# 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 uuid-runtime curl ruby-listen ruby-json ruby-mail && \ + gem install fileutils elasticsearch activesupport && \ + ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ + echo 'Asia/Shanghai' > /etc/timezone + +COPY mail-robot.rb /usr/local/bin/ + +COPY answerback-email.rb /usr/local/bin/ + +WORKDIR /usr/local/bin/
On Mon, Oct 19, 2020 at 02:57:30PM +0800, Luan Shengde wrote:
Signed-off-by: Luan Shengde luanshengde2@huawei.com
container/mail-robot/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 container/mail-robot/Dockerfile
diff --git a/container/mail-robot/Dockerfile b/container/mail-robot/Dockerfile new file mode 100644 index 0000000..57307bf --- /dev/null +++ b/container/mail-robot/Dockerfile @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+FROM debian
+MAINTAINER shdluan@163.com
MAINTAINER Luan Shengde shdluan@163.com
maybe better :)
Thanks, Zhang Yuhang
+ENV DEBIAN_FRONTEND noninteractive
+RUN apt-get update && \
- apt-get install -y uuid-runtime curl ruby-listen ruby-json ruby-mail && \
- gem install fileutils elasticsearch activesupport && \
- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
- echo 'Asia/Shanghai' > /etc/timezone
+COPY mail-robot.rb /usr/local/bin/
+COPY answerback-email.rb /usr/local/bin/
+WORKDIR /usr/local/bin/
2.23.0