#!/bin/sh # Run latexmk from the texlive image against the current directory. # tex -pdf main.tex # --user + HOME=/tmp keep build artifacts owned by you, not root. exec docker run --rm \ --user "$(id -u):$(id -g)" \ -e HOME=/tmp \ -v "$PWD:/data" \ ghcr.io/agresdominik/texlive:latest "$@"