diff --git a/Dockerfile b/Dockerfile index 5ccfd39..395b1b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,10 @@ RUN JEMALLOC_BDIR=$(mktemp -d) && \ git clone --depth 1 https://github.com/jemalloc/jemalloc $JEMALLOC_BDIR && \ cd $JEMALLOC_BDIR && \ ./autogen.sh && \ - ./configure --with-lg-page=14 && \ + arch=$(dpkg --print-architecture) && \ + if [[ $arch == amd64 ]]; then ./configure --with-lg-page=21 --with-lg-hugepage=21 --with-lg-quantum=6; \ + elif [[ $arch == aarch64 ]]; then ./configure --with-lg-page=14; \ + else ./configure && \ make -j$(nproc) && \ make install && \ rm -rf $JEMALLOC_BDIR