Files
docker/latex/entrypoint.sh
Janis Hutz f76ed005b8
All checks were successful
Create and publish container / build_container (push) Successful in 7s
Update entrypoint
2025-12-23 07:20:03 +01:00

25 lines
397 B
Bash
Executable File

#!/bin/sh
set -e
WORKDIR="$1"
EXTRA_ARGS="$2"
EXTRA_PKGS="$3"
if [ -n "$EXTRA_PKGS" ]; then
for pkg in $EXTRA_PKGS; do
echo "Install $pkg by apk"
apk add "$pkg"
done
fi
if [ -n "$WORKDIR" ]; then
cd "$WORKDIR"
fi
ls /root
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS