Skip to content

Commit

Permalink
build jemalloc test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqicao committed Nov 28, 2024
1 parent 5dbfdf1 commit 518441b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +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 \
dpkg-dev \
libjemalloc-dev \
procps \
&& \
rm -rf /var/lib/apt/lists/*

ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so
RUN echo "LD_PRELOAD=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libjemalloc.so" >> /etc/environment

RUN adduser --uid 1000 --home /sui --gecos '' --disabled-password sui
WORKDIR /sui
Expand Down

0 comments on commit 518441b

Please sign in to comment.