09e3b6ca66
Build and Push Image / build (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
713 B
Bash
Executable File
21 lines
713 B
Bash
Executable File
#!/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"
|