Files
moded_distructive_farm/server/start_docker.sh
2025-10-22 21:57:07 +03:00

13 lines
344 B
Bash
Executable File

#!/bin/sh
# Get port from config.py
PORT=$(python3 -c "from config import CONFIG; print(CONFIG.get('SYSTEM_PORT'))")
WEB_PORT=$(python3 -c "from config import CONFIG; print(CONFIG.get('PORT'))")
# Build and run docker with port forwarding
if [ "$1" = "--build" ]; then
docker build -t pb_farm .
fi
docker run --rm -p $PORT:$PORT pb_farm