Skip to content

Instantly share code, notes, and snippets.

@dblooman
Created October 2, 2014 14:58
Show Gist options
  • Select an option

  • Save dblooman/f64705f925cdfd09cbf1 to your computer and use it in GitHub Desktop.

Select an option

Save dblooman/f64705f925cdfd09cbf1 to your computer and use it in GitHub Desktop.
FROM ruby:2.1.2
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& curl -o phantomjs.tar.gz -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 \
&& tar -xvf phantomjs.tar.gz \
&& mv phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin
RUN apt-get install -y libfreetype6 libfontconfig1
# skip installing gem documentation
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
RUN gem install wraith
CMD [ "irb" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment