Skip to content

Commit 858da38

Browse files
committed
feat: Integrate jemalloc for improved memory allocation.
1 parent b8fc20b commit 858da38

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ ENV LANG="C.UTF-8" \
1313
PUID=0 \
1414
PGID=0 \
1515
UMASK=000 \
16-
VENV_PATH="/opt/venv"
16+
VENV_PATH="/opt/venv" \
17+
LD_PRELOAD="/usr/local/lib/libjemalloc.so"
1718

1819
ENV PATH="${VENV_PATH}/bin:${PATH}"
1920

@@ -33,8 +34,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3334
rsync \
3435
ffmpeg \
3536
nano \
37+
libjemalloc2 \
3638
&& dpkg-reconfigure --frontend noninteractive tzdata \
3739
&& curl https://rclone.org/install.sh | bash \
40+
&& ln -s /usr/lib/*-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so \
3841
&& apt-get autoremove -y \
3942
&& apt-get clean \
4043
&& rm -rf \

0 commit comments

Comments
 (0)