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

Add ruby2.5.0 with jemalloc image #10

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
31 changes: 31 additions & 0 deletions 7-ruby2.5.0-jemalloc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM centos:centos7

MAINTAINER [email protected]

ENV RUBY_DIR /ruby
ENV RUBY_VERSION 2.5.0
ENV RUBY_INSTALL $RUBY_DIR/$RUBY_VERSION
ENV RUBY_CONFIGURE_OPTS=--with-jemalloc

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 \
jemalloc-devel

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