mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-18 02:15:44 +02:00
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
21 lines
547 B
Docker
21 lines
547 B
Docker
FROM node:22
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
dumb-init \
|
|
libjemalloc2 \
|
|
ffmpeg \
|
|
poppler-utils \
|
|
libreoffice \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& rm -rf /usr/share/doc/* \
|
|
&& rm -rf /usr/share/man/*
|
|
|
|
ENV LD_PRELOAD=libjemalloc.so.2
|
|
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true
|
|
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
RUN npm install --ignore-scripts=false --verbose bufferutil sharp@v0.34.3 utf-8-validate snappy --unsafe-perm
|