2014-09-13 03:01:39 +02:00
|
|
|
FROM ruby:latest
|
2014-09-11 19:52:11 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
# update gems
|
2015-06-07 02:48:44 +02:00
|
|
|
RUN gem update --system \
|
|
|
|
&& gem update \
|
|
|
|
&& gem install syck
|
2014-09-11 19:52:11 +02:00
|
|
|
|
|
|
|
# install idonethis from git
|
2015-07-27 07:40:32 +02:00
|
|
|
RUN git clone https://github.com/influitive/idonethis.git /idonethis \
|
|
|
|
&& cd /idonethis \
|
|
|
|
&& rake build \
|
|
|
|
&& gem install /idonethis/pkg/idonethis-0.1.0.gem \
|
|
|
|
&& rm -rf /idonethis \
|
|
|
|
&& { \
|
|
|
|
echo '---'; \
|
|
|
|
echo 'sender: GmailSender'; \
|
|
|
|
} > /root/.idonethisrc
|
2014-09-11 19:52:11 +02:00
|
|
|
|
2015-06-07 02:48:44 +02:00
|
|
|
COPY main.sh /main.sh
|
2014-09-11 19:52:11 +02:00
|
|
|
|
2015-06-07 02:48:44 +02:00
|
|
|
ENTRYPOINT ["/main.sh"]
|