Download scripts/lambda-entrypoint.sh from aletrn/samgis: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/aletrn/samgis/resolve/main/scripts/lambda-entrypoint.sh
- Command line
-
hf download hf://spaces/aletrn/samgis/scripts/lambda-entrypoint.sh
-
curl -L -o lambda-entrypoint.sh https://huggingface.co/spaces/aletrn/samgis/resolve/main/scripts/lambda-entrypoint.sh
505 Bytes
| # default value for PYTHONBIN=/usr/local/bin/python | |
| # but it change because of poetry that it uses a virtualenv installed within the LAMBDA_TASK_ROOT=/var/task | |
| echo "python installation path and version:" | |
| which python | |
| python --version | |
| echo "lambda-entrypoint.sh: PYTHONPATH ${PYTHONPATH} ..." | |
| echo "lambda-entrypoint.sh: PATH ${PATH} ..." | |
| if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then | |
| exec /usr/local/bin/aws-lambda-rie python -m awslambdaric "$@" | |
| else | |
| exec python -m awslambdaric "$@" | |
| fi | |