top | item 46038281 (no title) anpat | 3 months ago I think it's better to not run npm as root user on container. I would suggest adding --user 1000 to your docker run command. discuss order hn newest ashishb|3 months ago > I think it's better to not run npm as root user on container. I would suggest adding --user 1000 to your docker run command.Good point. Here's the improvement that work for mehttps://github.com/ashishb/dotfiles/commit/fe4fb15fe867bf77a... jayknight|3 months ago It gets tricky with private dependencies, then you have to pass some sort of token into the container to authenticate with the host when installing dependencies. load replies (1)
ashishb|3 months ago > I think it's better to not run npm as root user on container. I would suggest adding --user 1000 to your docker run command.Good point. Here's the improvement that work for mehttps://github.com/ashishb/dotfiles/commit/fe4fb15fe867bf77a... jayknight|3 months ago It gets tricky with private dependencies, then you have to pass some sort of token into the container to authenticate with the host when installing dependencies. load replies (1)
jayknight|3 months ago It gets tricky with private dependencies, then you have to pass some sort of token into the container to authenticate with the host when installing dependencies. load replies (1)
ashishb|3 months ago
Good point. Here's the improvement that work for me
https://github.com/ashishb/dotfiles/commit/fe4fb15fe867bf77a...
jayknight|3 months ago