Skip to content

Instantly share code, notes, and snippets.

@zarkzork
Created July 21, 2015 15:39
Show Gist options
  • Save zarkzork/67b0c9a4281a340b22d8 to your computer and use it in GitHub Desktop.
Save zarkzork/67b0c9a4281a340b22d8 to your computer and use it in GitHub Desktop.
FROM rosenhouse/phantomjs2
MAINTAINER Vladimir Terekhov <zarkzork@gmail.com>
RUN apt-get update && apt-get install -y build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config libpq-dev make wget unzip git mysql-client libmysqlclient-dev imagemagick sendmail
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv && \
mkdir /usr/local/rbenv/plugins && \
git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build
ENV RBENV_ROOT /usr/local/rbenv
ENV PATH /usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV RBENV_VERSION 2.2.2
RUN rbenv install 2.2.2 && rbenv global 2.2.2 && gem install bundler foreman rack && rbenv rehash && \
rm -rf /usr/local/rbenv/versions/2.2.2/share/ri && find /usr/share/locale/ -maxdepth "1" | grep -i -v "ru\|en" | xargs rm -rf
# system defaults config
RUN echo "RBENV_ROOT=/usr/local/rbenv" > /etc/environment
RUN echo "PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /etc/environment
RUN echo "RBENV_VERSION=2.2.2" >> /etc/environment
RUN apt-get update && \
apt-get -y --force-yes install libass-dev libfreetype6-dev libgpac-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libmp3lame-dev x264 libx264-dev libxvidcore-dev \
libxcb-xfixes0-dev pkg-config supervisor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment