Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build Stoat Role Bot image and save to a .tar for upload to NAS.
|
||||
# Run this on a machine with Docker installed (e.g. your PC).
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "Building Docker image..."
|
||||
docker build -t stoat-role-bot:latest .
|
||||
|
||||
echo "Saving image to stoat-role-bot.tar..."
|
||||
docker save stoat-role-bot:latest -o stoat-role-bot.tar
|
||||
|
||||
echo "Done. Upload these to your NAS:"
|
||||
echo " 1. stoat-role-bot.tar (the image)"
|
||||
echo " 2. config/ folder with roles.json (your server ID + message ID)"
|
||||
echo ""
|
||||
echo "Then on the NAS: load the image and create a container with:"
|
||||
echo " - Env: STOAT_BOT_TOKEN, PREFIX=!, CONFIG_PATH=/app/config"
|
||||
echo " - Volume: host path with roles.json -> /app/config"
|
||||
Reference in New Issue
Block a user