Update entrypoint
All checks were successful
Create and publish container / build_container (push) Successful in 7s

This commit is contained in:
2025-12-23 07:20:03 +01:00
parent 16502ebaf6
commit f76ed005b8

View File

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