gitlab-build-images/Dockerfile.omnibus-gitlab-opensuse15.0
Stan Hu 92d39a46c2 Update Omnibus build images with Rubygems 3.0.6
v3.0.6 contains numerous fixes that address CVEs and other issues.
2019-09-05 05:04:39 -07:00

25 lines
867 B
Docker

FROM opensuse/leap:15.0
RUN zypper -q -n --gpg-auto-import-keys update \
&& zypper -q -n in -t pattern devel_perl devel_basis \
&& zypper -q -n install \
gcc gcc-c++ git make curl zlib-devel libopenssl-devel glibc-i18ndata glibc-locale hostname \
&& zypper clean -a
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE en_US:en
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
ENV RUBY_VERSION 2.6.3
ENV RUBYGEMS_VERSION 3.0.6
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 update --system ${RUBYGEMS_VERSION} --no-document \
&& gem install bundler --no-document