2026-03-28 11:29:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Build the unarr Docker image.
|
2026-03-30 13:06:07 +02:00
|
|
|
# Must be run from the unarr directory (or its parent).
|
2026-03-28 11:29:42 +01:00
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
|
PARENT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
|
|
2026-03-30 13:06:07 +02:00
|
|
|
# Build from parent dir so both unarr/ and go-client/ are in context
|
2026-03-28 11:29:42 +01:00
|
|
|
docker build \
|
|
|
|
|
-f "$SCRIPT_DIR/Dockerfile" \
|
|
|
|
|
-t torrentclaw/unarr:latest \
|
|
|
|
|
"$PARENT_DIR"
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "✓ Built: torrentclaw/unarr:latest"
|
|
|
|
|
docker images torrentclaw/unarr:latest --format " Size: {{.Size}}"
|