2024-07-27 18:04:21 +03:00
|
|
|
|
2024-10-21 10:06:24 +03:00
|
|
|
FROM node:20
|
2024-07-27 18:04:21 +03:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install libjemalloc2
|
2024-10-07 12:20:31 +03:00
|
|
|
RUN apt-get clean
|
2024-07-27 18:04:21 +03:00
|
|
|
|
|
|
|
ENV LD_PRELOAD=libjemalloc.so.2
|
|
|
|
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true
|
|
|
|
|
2024-08-20 15:39:12 +03:00
|
|
|
COPY bundle/bundle.js ./
|
|
|
|
COPY bundle/bundle.js.map ./
|
|
|
|
|
2024-07-27 18:04:21 +03:00
|
|
|
EXPOSE 3078
|
2024-09-13 13:25:17 +03:00
|
|
|
CMD [ "node", "bundle.js" ]
|