diff --git a/Dockerfile b/Dockerfile index ecbf04a..e2b232c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ ARG REQUEST_TIMEOUT=120000 ENV REQUEST_TIMEOUT=$REQUEST_TIMEOUT RUN uv tool install mcp-server-fetch +ENV UV_PYTHON_INSTALL_MIRROR="http://mirrors.aliyun.com/pypi/simple/" WORKDIR /app diff --git a/entrypoint.sh b/entrypoint.sh index 7032f16..e165453 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 "$@"