Skip to content

Use official centos image #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
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