From 19f0b0b974bb5c7b45042dd3cc3511a5d489cc0f Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Tue, 11 Jul 2017 20:32:46 -0300 Subject: [PATCH] Add jemalloc 5.0.1 as an optional lib --- image/base/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/image/base/Dockerfile b/image/base/Dockerfile index 521bfd6..160a4d8 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -54,10 +54,15 @@ RUN /tmp/install-nginx RUN apt-get -y install advancecomp jhead jpegoptim libjpeg-turbo-progs optipng -RUN mkdir /jemalloc && cd /jemalloc &&\ +RUN mkdir /jemalloc-stable && cd /jemalloc-stable &&\ wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 &&\ tar -xjf jemalloc-3.6.0.tar.bz2 && cd jemalloc-3.6.0 && ./configure --prefix=/usr && make && make install &&\ - cd / && rm -rf /jemalloc + cd / && rm -rf /jemalloc-stable + +RUN mkdir /jemalloc-new && cd /jemalloc-new &&\ + wget https://github.com/jemalloc/jemalloc/releases/download/5.0.1/jemalloc-5.0.1.tar.bz2 &&\ + tar -xjf jemalloc-5.0.1.tar.bz2 && cd jemalloc-5.0.1 && ./configure --prefix=/usr --with-install-suffix=5.0.1 && make build_lib && make install_lib &&\ + cd / && rm -rf /jemalloc-new RUN mkdir /gperftools && git clone https://github.com/gperftools/gperftools.git /gperftools &&\ cd /gperftools && git checkout gperftools-2.5 && ./autogen.sh && ./configure --prefix=$PWD/lib &&\ -- 2.25.1