Build jemalloc from source instead of via package manager

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKAbAkPvqqKCRZKXtZAvTx
This commit is contained in:
GuofangandClaude Sonnet 5 committed 2026-09-07 13:03:27 +08:00
1 parent 3cbeb5340c
commit 951ebf0907
2 files changed
+25 -1

No files matched your search

+12
View File
@@ -550,4 +550,16 @@ RUN git clone --branch=1.3.15 --depth=1 https://github.com/sewenew/redis-plus-pl
&& cmake --build build --parallel "$(nproc)" --target install \
&& rm -rf build src
RUN git clone --branch=5.3.1 --depth=1 https://github.com/jemalloc/jemalloc.git src \
&& cd src \
&& ./autogen.sh \
&& CFLAGS=-fPIC ./configure --prefix=/usr/local \
--disable-doc \
--disable-shared \
--enable-static \
&& make --jobs="$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf src
CMD ["/bin/bash"]