1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00

メモリアロケーターをjemallocにする (MisskeyIO#152)

This commit is contained in:
まっちゃとーにゅ 2023-08-19 21:13:41 +09:00 committed by NoriDev
parent 7d8832b368
commit 8762f0d573

View File

@ -62,7 +62,7 @@ ARG GID="991"
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ffmpeg tini curl \ ffmpeg tini curl libjemalloc2 \
&& corepack enable \ && corepack enable \
&& groupadd -g "${GID}" cherrypick \ && groupadd -g "${GID}" cherrypick \
&& useradd -l -u "${UID}" -g "${GID}" -m -d /cherrypick 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 --from=native-builder /cherrypick/fluent-emojis /cherrypick/fluent-emojis
COPY --chown=cherrypick:cherrypick . ./ 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 ENV NODE_ENV=production
HEALTHCHECK --interval=5s --retries=20 CMD ["/bin/bash", "/cherrypick/healthcheck.sh"] HEALTHCHECK --interval=5s --retries=20 CMD ["/bin/bash", "/cherrypick/healthcheck.sh"]
ENTRYPOINT ["/usr/bin/tini", "--"] ENTRYPOINT ["/usr/bin/tini", "--"]