Browse Source

Merge "Run python with jemalloc in containers"

Zuul 1 month ago
parent
commit
4436901673
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      docker/python-base/Dockerfile

+ 2
- 1
docker/python-base/Dockerfile View File

@@ -16,7 +16,8 @@
16 16
 FROM python:slim
17 17
 
18 18
 RUN apt-get update \
19
-  && apt-get install -y dumb-init \
19
+  && apt-get install -y dumb-init libjemalloc1 \
20 20
   && apt-get clean \
21 21
   && rm -rf /var/lib/apt/lists/*
22
+ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
22 23
 ENTRYPOINT ["/usr/bin/dumb-init", "--"]

Loading…
Cancel
Save