File size: 531 Bytes
0f038be 6570567 0f038be 6570567 0f038be 6570567 0f038be | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
# pid 1 of the container. With AUTO_UPDATE=1 (the default) the self-updater runs the bootstrap and the console and keeps
# both current from Hugging Face (fly_trader/ops/autoupdate.py); otherwise the bootstrap runs once and the console is pid 1.
set -e
cd /app
chmod +x docker/bootstrap.sh 2>/dev/null || true
if [ "${AUTO_UPDATE:-1}" = "1" ]; then
exec python -m fly_trader.ops.autoupdate
fi
sh docker/bootstrap.sh
echo "fly-trader: console at http://localhost:${PORT:-8501}"
exec fly-trader ui --port "${PORT:-8501}"
|