Centos:7 Java 8, RVM, Ruby 2.3.1, JRuby 9.1.2.0(default)
10K+
FROM centos:7 MAINTAINER "John Thomas" [email protected] ENV container docker
USER root
RUN /bin/bash -lc "yum update -y && yum install -y epel-release curl wget tar which
patch libyaml-devel libffi-devel glibc-headers autoconf gcc-c++ glibc-devel
readline-devel zlib-devel openssl-d evel bzip2 automake libtool bison
make dos2unix unzip net-tools openssl-devel sqlite-devel"
# Install Java 8
RUN wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm" -O /tmp/jdk-8-linux-x64.rpm
&& yum -y install /tmp/jdk-8-linux-x64.rpm
&& alternatives --install /usr/bin/java java /usr/java/latest/bin/java 200000
&& alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000
&& alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000
ENV JAVA_HOME /usr/java/latest
# Install RVM
RUN useradd nginx
&& su - nginx -c "command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -"
&& su - nginx -c "curl -L get.rvm.io | bash -s stable"
&& su - nginx -c "rvm autolibs fail"
# Install ruby 2.3.1 and JRuby 9.1.2.0(default)
RUN su - nginx -c "rvm install ruby-2.3.1"
&& su - nginx -c "rvm install jruby-9.1.2.0"
&& su - nginx -c "rvm use jruby-9.1.2.0 --default" \
# Install bundler
RUN su - nginx -c "rvm use ruby-2.3.1 && gem install bundler --no-ri --no-rdoc"
&& su - nginx -c "rvm use jruby-9.1.2.0 --default && gem install bundler --no-ri --no-rdoc" \
Content type
Image
Digest
Size
747.1 MB
Last updated
over 9 years ago
docker pull hashtagjohnt/ruby-base