feat: add entrypoint script to configure npm registry and streamline container startup

This commit is contained in:
samanhappy
2025-04-05 17:01:01 +08:00
parent e39ed5cc42
commit 16d3f2da34
2 changed files with 10 additions and 1 deletions

6
entrypoint.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
NPM_REGISTRY=${NPM_REGISTRY:-https://registry.npmjs.org/}
echo "Setting npm registry to ${NPM_REGISTRY}"
npm config set registry "$NPM_REGISTRY"
exec "$@"