Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request for private modules #150
Comments
|
This comment from npm/npm#8356 might be applicable for this discussion:
|
|
My personal opinion is, yes, it would be nice to support the |
|
Why not just support an |
|
I would also prefer the mounting of a local .npmrc into the image, but if we choose this approach, it should be in the docs |
|
I also like being able to mount a local |
|
I believe there are several ways to address this from setting the env var at run time to mounting a npm config file. Feel fee to re-open if this doesn't meet your needs. |
Right now the official miss out a important piece and that is private modules. I think a lot of companies and including my own private projects needs this feature. Also some documentation how to use it would be awesome as well :)
Here are some more information
http://blog.npmjs.org/post/118393368555/deploying-with-npm-private-modules
https://blog.risingstack.com/private-npm-with-docker/
I like this approach.
docker build --build-arg NPM_TOKEN=${NPM_TOKEN} .