chore: import deployable mai-bot source tree
This commit is contained in:
15
docker-entrypoint.sh
Normal file
15
docker-entrypoint.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
ADAPTER_TEMPLATE="/MaiMBot/plugin-templates/MaiBot-Napcat-Adapter"
|
||||
ADAPTER_TARGET="/MaiMBot/plugins/MaiBot-Napcat-Adapter"
|
||||
|
||||
mkdir -p /MaiMBot/plugins
|
||||
|
||||
if [ ! -e "$ADAPTER_TARGET" ] && [ -d "$ADAPTER_TEMPLATE" ]; then
|
||||
cp -a "$ADAPTER_TEMPLATE" "$ADAPTER_TARGET"
|
||||
fi
|
||||
|
||||
uv pip install --python "/MaiMBot/.venv/bin/python" --upgrade maibot-dashboard
|
||||
|
||||
exec /MaiMBot/.venv/bin/python bot.py "$@"
|
||||
Reference in New Issue
Block a user