FetchError: request to https://registry.npmjs.org/-/npm/v1/security/advisories/bulk failed, reason: unable to get local issuer certificate
...means that Node.js/npm is not trusting your company certificate (ara-at-zertifikatskette.crt) when making HTTPS requests.
Even though you're setting:
bash
npm config set cafile /usr/local/share/ca-certificates/ara-at-zertifikatskette.crt
...this only affects npm, not Node.js itself, which is what minipass-fetch (used by npm) ultimately uses under the hood.
✅ Fix: Set the certificate for Node.js globally
You need to tell Node.js to use your company certificate as a trusted CA. The most reliable way is to set the NODE_EXTRA_CA_CERTS environment variable.
✅ Step-by-step fix
1. Update your Dockerfile
Add this line after copying and updating certificates: