Public Repository

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description
FROM isuke/rvm

#
# ruby
#
ENV RUBY_VERSION=2.4.1
RUN rvm install $RUBY_VERSION && \
    rvm --default use $RUBY_VERSION

#
# ruby and rails
#
RUN echo "RAILS_ENV=test" | sudo tee -a /etc/environment && \
    echo "RACK_ENV=test" | sudo tee -a /etc/environment

#
# Phantomjs
#
RUN cd /tmp && \
    wget -U "" https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
    tar xfj phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
    cp /tmp/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin

#
# Node.js
#
RUN cd /usr/local/src/ && \
    wget http://nodejs.org/dist/v6.0.0/node-v6.0.0.tar.gz && \
    tar zxvf node-v6.0.0.tar.gz && \
    cd node-v6.0.0 && \
    ./configure && \
    make && \
    make install

#
# Yarn
#
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
    sudo apt-get update && sudo apt-get install apt-transport-https yarn -y

#
# Webpack
#
RUN cd $(npm root -g)/npm && \
    npm install fs-extra && \
    sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js && \
    npm install webpack -g
Docker Pull Command
Owner
isuke

Comments (0)