Add CentOS 8 image

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
Balasankar "Balu" C 2019-11-13 11:43:24 +05:30
parent 0008837baa
commit 2fd5655457
No known key found for this signature in database
GPG key ID: B77D2E2E23735427
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,22 @@
FROM centos:centos8
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 en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
ENV RUBY_VERSION 2.6.3
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