fix: add UV_PYTHON_INSTALL_MIRROR environment variable to Dockerfile and entrypoint script

This commit is contained in:
samanhappy@qq.com
2025-04-10 21:53:11 +08:00
parent 8dd058ecd0
commit 4cf1bfaadd
2 changed files with 3 additions and 1 deletions

View File

@@ -1,9 +1,10 @@
#!/bin/bash
NPM_REGISTRY=${NPM_REGISTRY:-https://registry.npmjs.org/}
NPM_REGISTRY=${NPM_REGISTRY:-https://registry.npmmirror.com/}
echo "Setting npm registry to ${NPM_REGISTRY}"
npm config set registry "$NPM_REGISTRY"
echo "Using REQUEST_TIMEOUT: $REQUEST_TIMEOUT"
echo "Using UV_PYTHON_INSTALL_MIRROR: $UV_PYTHON_INSTALL_MIRROR"
exec "$@"