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 cebaaf3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ 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 ln -s /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libjemalloc.so /usr/lib/libjemalloc.so

ENV LD_PRELOAD=/usr/lib/libjemalloc.so

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

0 comments on commit cebaaf3

Please sign in to comment.