Skip to content

Commit 4c5317c

Browse files
fix: fix LD_PRELOAD env.
1 parent 3f986c5 commit 4c5317c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/Dockerfile-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
3131
chmod g+xr /usr/bin/ld.so && \
3232
chmod g+x /usr/local/bin/python* && \
3333
apt-get clean all && \
34+
echo "/usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2" > /etc/ld.so.preload
3435
rm -rf /var/lib/apt/lists/* /usr/share/doc/* /usr/share/man/* /usr/share/info/* /usr/share/locale/* /usr/share/lintian/* /usr/share/linda/* /var/cache/* /var/log/* /var/tmp/* /tmp/*
3536
COPY --from=vector-model --chmod=700 /opt/maxkb-app/model /opt/maxkb-app/model
3637

@@ -42,7 +43,6 @@ ENV PATH=/opt/py3/bin:$PATH \
4243
REDIS_PASSWORD=Password123@redis \
4344
LANG=en_US.UTF-8 \
4445
PYTHONUNBUFFERED=1 \
45-
LD_PRELOAD=/usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 \
4646
MAXKB_CONFIG_TYPE=ENV \
4747
MAXKB_LOG_LEVEL=INFO \
4848
MAXKB_SANDBOX=1 \

0 commit comments

Comments
 (0)