diff --git a/.github/deployment/node/Dockerfile b/.github/deployment/node/Dockerfile index 353642f9ab..9555c940c7 100644 --- a/.github/deployment/node/Dockerfile +++ b/.github/deployment/node/Dockerfile @@ -7,7 +7,10 @@ COPY ./packages/frontend/apps/mobile/dist /app/static/mobile WORKDIR /app RUN apt-get update && \ - apt-get install -y --no-install-recommends openssl && \ + apt-get install -y --no-install-recommends openssl libjemalloc2 && \ rm -rf /var/lib/apt/lists/* +# Enable jemalloc by preloading the library +ENV LD_PRELOAD=libjemalloc.so.2 + CMD ["node", "./dist/main.js"]