From 858da38680036637948833ed1e3c85ed35c3d107 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 14 Mar 2026 12:00:12 +0800 Subject: [PATCH] feat: Integrate jemalloc for improved memory allocation. --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b3f89d81..6ab19099 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,7 +13,8 @@ ENV LANG="C.UTF-8" \ PUID=0 \ PGID=0 \ UMASK=000 \ - VENV_PATH="/opt/venv" + VENV_PATH="/opt/venv" \ + LD_PRELOAD="/usr/local/lib/libjemalloc.so" ENV PATH="${VENV_PATH}/bin:${PATH}" @@ -33,8 +34,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ rsync \ ffmpeg \ nano \ + libjemalloc2 \ && dpkg-reconfigure --frontend noninteractive tzdata \ && curl https://rclone.org/install.sh | bash \ + && ln -s /usr/lib/*-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so \ && apt-get autoremove -y \ && apt-get clean \ && rm -rf \