From 5dbfdf164de1ccaba6a68ebd5467b3711bb7dce6 Mon Sep 17 00:00:00 2001 From: shiqi cao Date: Tue, 26 Nov 2024 14:16:42 -0800 Subject: [PATCH] enable jemalloc --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d0ecee6..1f43e8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,12 +40,15 @@ FROM debian:bookworm-slim AS runtime-base RUN apt-get update && \ apt-get install -y --no-install-recommends \ + ibjemalloc-dev \ curl \ ca-certificates \ procps \ && \ rm -rf /var/lib/apt/lists/* +ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so + RUN adduser --uid 1000 --home /sui --gecos '' --disabled-password sui WORKDIR /sui