1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
ARG IMAGE=centos:7
FROM ${IMAGE}
WORKDIR /build
COPY . .
RUN cat /etc/redhat-release
RUN yum -yq update
RUN yum -yq install epel-release
# The options are to install faster.
RUN yum -yq install \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
gcc \
gcc-c++ \
git \
make \
mariadb-devel \
mariadb-server \
ruby-devel
RUN gem install --no-document "rubygems-update:~>2.7" && update_rubygems > /dev/null
RUN gem install --no-document "bundler:~>1.17"
CMD bash ci/container.sh
|