FROM node:lts-slim
RUN apt-get update && apt-get install -y --no-install-recommends libreoffice-writer-nogui 2>&1 | grep -E "Need to get|After this operation|newly installed" ; rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN npm i --no-audit --no-fund libreoffice-convert@1.9.1 2>&1 | tail -2 && du -sh node_modules
