From 8762f0d57373f374682b47a0807e7386701bab73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 19 Aug 2023 21:13:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=A2=E3=83=AA=E3=82=A2=E3=83=AD?= =?UTF-8?q?=E3=82=B1=E3=83=BC=E3=82=BF=E3=83=BC=E3=82=92jemalloc=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B=20(MisskeyIO#152)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9c99a9da29..010270cd8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,7 @@ ARG GID="991" RUN apt-get update \ && apt-get install -y --no-install-recommends \ - ffmpeg tini curl \ + ffmpeg tini curl libjemalloc2 \ && corepack enable \ && groupadd -g "${GID}" cherrypick \ && useradd -l -u "${UID}" -g "${GID}" -m -d /cherrypick cherrypick \ @@ -81,6 +81,8 @@ COPY --chown=cherrypick:cherrypick --from=native-builder /cherrypick/packages/ba COPY --chown=cherrypick:cherrypick --from=native-builder /cherrypick/fluent-emojis /cherrypick/fluent-emojis COPY --chown=cherrypick:cherrypick . ./ +ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 +ENV MALLOC_CONF=background_thread:true,metadata_thp:auto,dirty_decay_ms:30000,muzzy_decay_ms:30000 ENV NODE_ENV=production HEALTHCHECK --interval=5s --retries=20 CMD ["/bin/bash", "/cherrypick/healthcheck.sh"] ENTRYPOINT ["/usr/bin/tini", "--"]