2024-04-12 09:30:07 +03:00
|
|
|
FROM node:20
|
2022-11-15 05:51:46 +03:00
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
WORKDIR /app
|
2024-07-24 13:27:09 +03:00
|
|
|
RUN npm install --ignore-scripts=false --verbose sharp@v0.32.6 bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm
|
2024-05-28 17:14:45 +03:00
|
|
|
|
2024-06-18 14:33:44 +03:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install libjemalloc2
|
|
|
|
|
|
|
|
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-07-27 18:04:21 +03:00
|
|
|
COPY bundle/bundle.js.map ./
|
2022-11-15 05:51:46 +03:00
|
|
|
COPY dist/ ./dist/
|
|
|
|
|
|
|
|
EXPOSE 8080
|
2024-04-12 09:30:07 +03:00
|
|
|
CMD [ "node", "./bundle.js" ]
|