Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Add centos 7 image with ruby2.3.5 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions 7-ruby2.3.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM centos:centos7

MAINTAINER [email protected]

ENV RUBY_DIR /ruby
ENV RUBY_VERSION 2.3.5
ENV RUBY_INSTALL $RUBY_DIR/$RUBY_VERSION

RUN rpm -Uvh \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum update -y && \
yum install -y make which wget tar git \
gcc patch readline-devel zlib-devel \
libyaml-devel libffi-devel openssl-devel \
gdbm-devel ncurses-devel libxml-devel bzip2

RUN cd /usr/src && \
git clone https://github.com/sstephenson/ruby-build.git && \
./ruby-build/install.sh && \
mkdir -p $RUBY_INSTALL && \
/usr/local/bin/ruby-build $RUBY_VERSION $RUBY_INSTALL && \
rm -rf /usr/src/ruby-build

ENV NODE_VERSION 5.6.0

RUN wget https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz -O /tmp/node-v${NODE_VERSION}-linux-x64.tar.gz && \
tar --strip-components 1 -xzvf /tmp/node-v* -C /usr/local

ENV PATH $RUBY_INSTALL/bin:$PATH