I have the case that I can not use npm install in my Dockerfile for all of my packages because some of them are private and using the technique described here on npm using an auth token is not working in this scenario.
So I'm now following these instructions https://stackoverflow.com/a/38782109/9931013
But as it would be way faster and more convenient to just copy the private npm packages instead of all I was wondering if anyone had an idea on how to do this.
p.s. Of course I could just add all node_modules subfolders except for the private ones to .dockerignore I guess but as Joey from Friends once said: "There's got to be a better way!!"