logoalt Hacker News

anpatyesterday at 7:39 PM1 replyview on HN

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.


Replies

ashishbyesterday at 8:04 PM

> 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 me

https://github.com/ashishb/dotfiles/commit/fe4fb15fe867bf77a...

show 1 reply