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

25 lines
391 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
echo "Runner started, will run latexmk with extra args $EXTRA_ARGS"
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode $EXTRA_ARGS