Skip to content
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
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM redguava/centos:latest
FROM centos:7

# Install readline
RUN yum install -y readline-devel
# Skip installing gem documentation
RUN echo -e 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc"

# Install dependencies
RUN yum install -y git readline-devel

# Install ruby dependencies
RUN yum install --enablerepo=centosplus -y gcc gcc-c++ libffi-devel make openssl-devel
Expand All @@ -21,8 +24,5 @@ RUN git clone https://github.com/sstephenson/ruby-build.git /usr/local/src/ruby-
CONFIGURE_OPTS="--disable-install-doc" ruby-build 2.1.6 /usr/local && \
rm -rf /usr/local/src/ruby-build

# Configure gem installation
RUN echo 'gem: --no-document' >> ~/.gemrc

# Install bundler
RUN gem install bundler