Skip to content

Commit

Permalink
chore: setup tcmalloc in rocksdb dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Nov 1, 2024
1 parent e951240 commit 5841eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile-rocksdb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
FROM ubuntu:22.04

RUN apt-get update \
&& apt-get install -y libsnappy1v5 libgflags2.2 zlib1g libbz2-1.0 curl jq \
&& apt-get install -y libsnappy1v5 libgflags2.2 zlib1g libbz2-1.0 google-perftools curl jq \
&& rm -rf /var/lib/apt/lists/*

# copy rocksdb shared objects
Expand All @@ -37,4 +37,5 @@ RUN ldconfig
# copy kava binary
COPY --from=kava-builder /go/bin/kava /bin/kava

ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4"
CMD ["kava"]

0 comments on commit 5841eb1

Please sign in to comment.