diff --git a/mailcatcher/Dockerfile b/mailcatcher/Dockerfile index 257f5a9..15d52ca 100644 --- a/mailcatcher/Dockerfile +++ b/mailcatcher/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:wheezy +FROM ruby:2.2 MAINTAINER Johannes Schickling "schickling.j@gmail.com" ADD install.sh install.sh diff --git a/mailcatcher/install.sh b/mailcatcher/install.sh index f910aaa..13876e5 100644 --- a/mailcatcher/install.sh +++ b/mailcatcher/install.sh @@ -3,13 +3,13 @@ # exit if a command fails set -e -# install ruby 1.9.1 -apt-get update && apt-get install -y ruby ruby-dev build-essential sqlite3 libsqlite3-dev +# install dependencies +apt-get update && apt-get install -y build-essential sqlite3 libsqlite3-dev # install mailcatcher -gem install mailcatcher --no-ri --no-rdoc +gem install mailcatcher -v 0.5.12 --no-ri --no-rdoc # cleanup package manager -apt-get remove --purge -y build-essential ruby-dev libsqlite3-dev && apt-get autoclean && apt-get clean +apt-get remove --purge -y build-essential libsqlite3-dev && apt-get autoclean && apt-get clean rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*