Add Docker image workflow for ani-cli-web

This commit is contained in:
Dymas
2026-05-17 11:26:40 +02:00
parent 68fdc99bbd
commit 48efe840eb
7 changed files with 147 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu
is_true() {
case "$(printf '%s' "${1:-}" | tr '[:upper:]' '[:lower:]')" in
1 | true | yes | on) return 0 ;;
*) return 1 ;;
esac
}
mkdir -p /downloads /app/.ani-cli-web
if is_true "${UPDATE_ON_START:-false}"; then
echo "Checking for ani-cli updates with sudo ani-cli --update"
sudo ani-cli --update
fi
cd /app
exec ./ani-cli-web "$@"