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:
1 parent
3cbeb5340c
commit
951ebf0907
2 files changed
+25
-1
No files matched your search
@@ -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"]
|
||||
+13
-1
@@ -1,4 +1,4 @@
|
||||
FROM docker.io/rockylinux/rockylinux:9
|
||||
FROM docker.io/library/rockylinux:9
|
||||
|
||||
RUN dnf install --assumeyes --enablerepo=crb \
|
||||
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 \
|
||||
&& 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 RUSTUP_VERSION=1.28.2 \
|
||||
|
||||
Reference in new issue
Block a user