FROM centos:centos8 # https://techglimpse.com/failed-metadata-repo-appstream-centos-8/ RUN cd /etc/yum.repos.d/ \ && sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \ && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* RUN yum update -y -q \ && yum groupinstall -y "Development Tools" \ && yum install -y \ gcc gcc-c++ git make curl zlib-devel openssl-devel glibc-locale-source \ && yum clean all ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 RUN localedef -c -f UTF-8 -i C C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ | tar -xzC /tmp \ && cd "/tmp/ruby-${RUBY_VERSION}" \ && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ && make \ && make install \ && cd / \ && rm -rf "/tmp/ruby-${RUBY_VERSION}" \ && gem install bundler --no-document --version 2.2.3