tar -xjf jemalloc-5.1.0.tar.bz2 && cd jemalloc-5.1.0 && ./configure --prefix=/usr --with-install-suffix=5.1.0 && make build_lib && make install_lib &&\
cd / && rm -rf /jemalloc-new
-RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
+RUN apt-get -y install ruby &&\
+ echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
cd /src/ruby-build && ./install.sh &&\
- cd / && rm -rf /src/ruby-build && (ruby-build 2.5.2 /usr/local)
+ cd / && rm -rf /src/ruby-build && (ruby-build 2.5.2 /usr/local) &&\
+ apt-get -y remove ruby
RUN gem update --system
mkdir -p $WDIR
# Build and install libpng
-git clone -b v1.6.35 https://github.com/glennrp/libpng.git $WDIR/libpng
+git clone -b v1.6.34 https://github.com/glennrp/libpng.git $WDIR/libpng
cd $WDIR/libpng
./autogen.sh
./configure --prefix=$PREFIX