Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile:

FROM ubuntu:trusty

RUN ["apt-get", "-qqy", "update"]
RUN ["apt-get", "-qqy", "install", "build-essential", "git", "mysql-client", "libssl-dev", "zlib1g-dev", "curl", "libmysqlclient-dev", "libsqlite3-dev", "libreadline6", "libreadline6-dev", "phantomjs"]

# Install rbenv
RUN git clone https://github.com/sstephenson/rbenv.git ~/.rbenv

# install ruby-build
RUN git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

# configure rbenv
ENV PATH ~/.rbenv/shims:~/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >  ~/.bash_profile

# libssl-dev
RUN apt-get -qqy install libssl-dev

# install ruby 2.1.2 and bundler
RUN bash -c "rbenv install 2.1.2"
RUN bash -c "rbenv global 2.1.2"
RUN bash -c "gem install bundler"

# install mailcatcher
RUN bash -c "gem install mailcatcher"

# add gem binaries to PATH
ENV PATH $PATH:~/.rbenv/versions/2.1.2/bin/

# For execjs—needs node
RUN apt-get install -qqy python-software-properties python python-setuptools software-properties-common
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update -qqy
RUN apt-get install -qqy nodejs
Docker Pull Command
Owner
macool