BuildKit sandbox DNS cannot resolve registry.npmjs.org. Using --network=host on the RUN step lets npm use the host network stack directly, bypassing the broken sandbox DNS.
BuildKit sandbox DNS cannot resolve registry.npmjs.org. Using --network=host on the RUN step lets npm use the host network stack directly, bypassing the broken sandbox DNS.