21 lines
562 B
Docker
21 lines
562 B
Docker
FROM debian:trixie-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
texlive-latex-base \
|
|
texlive-latex-recommended \
|
|
texlive-fonts-recommended \
|
|
lmodern \
|
|
latexmk \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Run as an unprivileged user; keep TeX's font cache out of the mounted folder.
|
|
RUN useradd --create-home --uid 1000 latex
|
|
ENV TEXMFVAR=/tmp/texmf-var
|
|
USER latex
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["latexmk", "-pdf", "-interaction=nonstopmode", "-halt-on-error"]
|
|
CMD ["hello.tex"]
|