jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

Support privately hosted NPM registry #85

Open kpala opened 6 years ago

kpala commented 6 years ago

It's currently possible to use private NPM registries hosted in registry.npmjs.org (https://github.com/jshimko/meteor-launchpad/issues/14). However, we would need support for NPM registries dedicated for our own internal namespace and hosted in our own premises. The .npmrc file should look something like the following:

registry=https://registry.npmjs.org/
@%NPM_NAMESPACE%:registry=http://%NPM_REGISTRY%/
//%NPM_REGISTRY%/:_authToken="%NPM_TOKEN%"

Above, NPM_NAMESPACE, NPM_REGISTRY and NPM_TOKEN should be configurable.

Alternatively, maybe providing entire .npmrc file content as a build argument would be better option?