Do not clone model requests on server if possible (#6353)

This commit is contained in:
Andrey Sobolev
2024-08-20 19:39:12 +07:00
committed by GitHub
parent 895a2b1bf6
commit 84cd3b6cbb
11 changed files with 101 additions and 30 deletions
+3 -2
View File
@@ -4,8 +4,6 @@ FROM node:20
WORKDIR /usr/src/app
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm
COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
RUN apt-get update
RUN apt-get install libjemalloc2
@@ -13,5 +11,8 @@ RUN apt-get install libjemalloc2
ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true
COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
EXPOSE 3078
CMD [ "node", "--inspect", "--async-stack-traces", "--enable-source-maps", "bundle.js" ]