#!/bin/sh # /app is a bundle built by the bot's CI: main.py + app/ + website/ + vendor/ (its dependencies). # PYTHONPATH=/app/vendor is set by compose, so nothing is installed at run time. if [ -f /app/main.py ]; then if [ ! -d /app/vendor ]; then echo "discord-bot: /app has code but no vendor/ — this image installs no bot dependencies." echo " Install a CI bundle: ./deployBotBundle.sh " fi exec python -u /app/main.py fi echo "discord-bot: /app is empty — install a bundle from the bot's CI: ./deployBotBundle.sh " echo " (artifact 'vanguard-bot-bundle' on the VanguardBot repo's ci workflow)" exec sleep infinity