ruby -v 2.4.1, rails -v 5.0.1, CentOS Linux release 7.3.1611 (Core)
31
dockerfile
FROM centos:latest
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
RUN yum update -y && \
yum install -y ibus-kkc vlgothic-* wget gcc gcc-c++ make openssl-devel zlib-devel witch vim && \
yum install -y nodejs sqlite sqlite-devel && \
yum install -y libxml2 libxslt libxml2-devel libxslt-devel && \
cd /tmp && \
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz && \
tar zxvf ruby-2.4.1.tar.gz && \
cd /tmp/ruby-2.4.1 && \
./configure && \
make && \
make install && \
echo 'export PATH=/usr/local/bin:$PATH' >> /root/.bashrc && \
source /root/.bashrc && \
gem update && \
gem install sqlite3 && \
gem install pkg-config && \
gem install nokogiri -- --use-system-libraries && \
gem install rails -v 5.0.1
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
EXPOSE 3000
No tags have been pushed to this repository yet.