Download scripts/entrypoint.sh from Struggler/HSERRAGV3: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/spaces/Struggler/HSERRAGV3/resolve/main/scripts/entrypoint.sh
- Command line
-
hf download hf://spaces/Struggler/HSERRAGV3/scripts/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/Struggler/HSERRAGV3/resolve/main/scripts/entrypoint.sh
821 Bytes
| set -e | |
| # Docker Spaces exclude the repository's runtime `data/` tree from the build | |
| # context. The reviewed graph index is packaged under assets and copied into | |
| # the approved runtime data directory before Django starts. | |
| if [ -f ./assets/lightrag_hf_index/hserag_document_manifest.json ]; then | |
| mkdir -p ./data/lightrag_hf_index | |
| cp -a ./assets/lightrag_hf_index/. ./data/lightrag_hf_index/ | |
| fi | |
| python backend/manage.py migrate --noinput | |
| python backend/manage.py seed_users | |
| python backend/manage.py check_users | |
| python backend/manage.py import_sessions reference/user_sessions.json || true | |
| python backend/manage.py collectstatic --noinput | |
| exec gunicorn hserag.wsgi:application \ | |
| --chdir backend \ | |
| --bind 0.0.0.0:${PORT:-7860} \ | |
| --workers ${WEB_CONCURRENCY:-1} \ | |
| --timeout ${WEB_TIMEOUT:-180} | |