Team Ai
Apppublic

ayushbharadva/patchpilot-api

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
render_start.sh13 linesDownload Raw Back to scripts
1#!/usr/bin/env bash2set -euo pipefail3 4cd "$(dirname "$0")/.."5 6# glibc grows one malloc arena per thread by default (8 per core reported),7# which fragments badly in a 512MB container — capping arenas is the standard8# containerized-Python mitigation and typically saves 50-150MB RSS here.9export MALLOC_ARENA_MAX="${MALLOC_ARENA_MAX:-2}"10 11python scripts/render_boot.py12 13exec python -m uvicorn backend.main:app --workers 1 --host 0.0.0.0 --port "${PORT:-8000}"