2022-06-02 05:26:42 +03:00
|
|
|
|
2024-04-12 09:30:07 +03:00
|
|
|
FROM node:20
|
2022-06-02 05:26:42 +03:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2024-07-24 13:27:09 +03:00
|
|
|
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm
|
2024-10-07 12:20:31 +03:00
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install libjemalloc2
|
|
|
|
RUN apt-get clean
|
|
|
|
|
|
|
|
ENV LD_PRELOAD=libjemalloc.so.2
|
|
|
|
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true
|
|
|
|
|
2024-02-12 19:57:11 +03:00
|
|
|
COPY bundle/bundle.js ./
|
2024-10-09 08:08:27 +03:00
|
|
|
COPY bundle/bundle.js.map ./
|
|
|
|
COPY bundle/model.json ./
|
2022-06-02 05:26:42 +03:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2024-10-18 08:12:07 +03:00
|
|
|
CMD [ "node", "--expose-gc", "bundle.js" ]
|