Spaces:
Sleeping
Sleeping
Download entrypoint.sh from RebotGu/warp2Service: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/RebotGu/warp2Service/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/RebotGu/warp2Service/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/RebotGu/warp2Service/resolve/main/entrypoint.sh
666 Bytes
| # 立即退出如果任何命令失败 | |
| set -e | |
| # 明确地创建 uv 需要的目录在 /tmp 下,确保它们存在 | |
| # /tmp 目录在任何容器环境中都是可写的 | |
| mkdir -p /tmp/uv-cache | |
| mkdir -p /tmp/uv-venv | |
| # 强制导出环境变量,确保它们对后续命令可见 | |
| export UV_CACHE_DIR=/tmp/uv-cache | |
| export UV_VENV_PATH=/tmp/uv-venv | |
| # 打印一条日志,方便调试,确认脚本已执行 | |
| echo "Entrypoint: UV directories and environment variables are set." | |
| echo "UV_CACHE_DIR is now: $UV_CACHE_DIR" | |
| echo "UV_VENV_PATH is now: $UV_VENV_PATH" | |
| # 执行你原来的 CMD 命令 | |
| # "$@" 允许你从 Dockerfile 的 CMD 传递参数 | |
| exec "$@" | |