mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-22 19:38:17 +00:00
fd262b3344
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
13 lines
364 B
Docker
13 lines
364 B
Docker
FROM node:22
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install libjemalloc2 dumb-init
|
|
RUN apt-get clean
|
|
|
|
ENV LD_PRELOAD=libjemalloc.so.2
|
|
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true
|
|
|
|
WORKDIR /usr/src/app
|
|
ENV NODE_ENV=production
|
|
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate snappy msgpackr msgpackr-extract --unsafe-perm
|