QuickAppBuilder / start.sh
PeterPinetree's picture
feat(docker): add start.sh to honor (default 7860) and log bind; expose 7860/3000; stop port flapping
40f42c0
#!/bin/sh
set -e
# Honor Space-provided PORT, default to 7860 for Docker Spaces
PORT_TO_USE="${PORT:-7860}"
HOST_TO_USE="${HOST:-0.0.0.0}"
echo "Starting Next.js on ${HOST_TO_USE}:${PORT_TO_USE}"
exec node node_modules/next/dist/bin/next start -H "${HOST_TO_USE}" -p "${PORT_TO_USE}"