diff --git a/Dockerfile b/Dockerfile index d16713691d..673855072e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,7 @@ ARG GID="991" RUN apt-get update \ && apt-get install -y --no-install-recommends \ ffmpeg tini curl libjemalloc-dev libjemalloc2 \ + && ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so \ && corepack enable \ && groupadd -g "${GID}" cherrypick \ && useradd -l -u "${UID}" -g "${GID}" -m -d /cherrypick cherrypick \ @@ -81,7 +82,7 @@ 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 LD_PRELOAD=/usr/local/lib/libjemalloc.so 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"]