# Toolchain for the Ross-1988 re-typeset project (matches the environment the
# first two sessions ran in: Ubuntu 24.04, TeX Live 2023, tesseract 5.3, poppler).
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8
RUN apt-get update && apt-get install -y --no-install-recommends \
      texlive-xetex texlive-latex-base texlive-latex-recommended texlive-latex-extra \
      texlive-fonts-recommended texlive-fonts-extra \
      fonts-liberation fonts-freefont-ttf fontconfig \
      poppler-utils tesseract-ocr tesseract-ocr-eng \
      python3 python3-pip python3-pil python3-numpy \
      make curl ca-certificates \
 && rm -rf /var/lib/apt/lists/* \
 && pip3 install --no-cache-dir --break-system-packages pdfplumber fonttools \
 && fc-cache -f
WORKDIR /work
# The project directory is bind-mounted at /work (see compose.yaml); nothing is copied in.
CMD ["bash"]
