Files
docker/latex/entrypoint.sh
Janis Hutz becdf00ad9
All checks were successful
Create and publish container / build_container (push) Successful in 7s
Restructure repo
2025-12-22 19:19:43 +01:00

24 lines
338 B
Bash
Executable File

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