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 \ && cmake --build build --parallel "$(nproc)" --target install \
&& rm -rf build src && 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"] CMD ["/bin/bash"]
+13 -1
View File
@@ -1,4 +1,4 @@
FROM docker.io/rockylinux/rockylinux:9 FROM docker.io/library/rockylinux:9
RUN dnf install --assumeyes --enablerepo=crb \ RUN dnf install --assumeyes --enablerepo=crb \
autoconf \ autoconf \
@@ -558,6 +558,18 @@ RUN git clone --branch=1.3.15 --depth=1 https://github.com/sewenew/redis-plus-pl
&& cmake --build build --parallel "$(nproc)" --target install \ && cmake --build build --parallel "$(nproc)" --target install \
&& rm -rf build src && 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
RUN cp --archive /usr/local/lib/. /usr/local/lib64/ RUN cp --archive /usr/local/lib/. /usr/local/lib64/
RUN RUSTUP_VERSION=1.28.2 \ RUN RUSTUP_VERSION=1.28.2 \