+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/