From 6f70491f3ee1efad3614714f4316c3d127c59c58 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Thu, 8 Oct 2015 22:25:34 +0100 Subject: [PATCH] Use official centos image Our centos version had packages that are no longer necessary. This reduces the build by 240 MB. --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95ffd00..b91eb84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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