# Minimal headless LibreOffice — document engine only, no GUI, no Java.
# Deliberately small: the point of the spike is to compare against the 5.75GB
# ONLYOFFICE Document Server image, so a fat image would beg the question.
FROM debian:12-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
      libreoffice-writer libreoffice-calc libreoffice-impress \
      python3-uno fonts-liberation fonts-dejavu-core \
      poppler-utils \
 && apt-get clean && rm -rf /var/lib/apt/lists/*

# A writable profile dir; soffice refuses to start without one it owns.
ENV HOME=/tmp
WORKDIR /work
ENTRYPOINT ["/bin/bash", "-lc"]
