Signed-off-by: Luan Shengde luanshengde2@huawei.com --- container/mail-robot/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 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..87c04e7 --- /dev/null +++ b/container/mail-robot/Dockerfile @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ + +FROM debian +MAINTAINER luanshd0525@163.com +ENV DEBIAN_FRONTEND noninteractive + +COPY conf/sources.list* /etc/apt/ + +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/
+RUN apt-get update && \ ^^
RUN apt-get update && \
1.use 'Tab' key instead of 'space' key
- apt-get install -y uuid-runtime curl ruby-listen ruby-json ruby-mail && \
- gem install fileutils elasticsearch activesupport && \
2.separate apt-get/gem, use RUN gem install in next line.
RUN 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/
3.add blank line in Dockerfile
+COPY answerback-email.rb /usr/local/bin/
ditto
Thanks, Yinsi
+WORKDIR /usr/local/bin/