Re:`COPY –chmod` reduced the size of my container image by 35%
by speedgoose on Saturday March 26, 2022 @01:50AM
(#30809567)
You shouldn’t use pm2 in software containers. That makes things more complex and not standard.
[ Parent
| on HN ]
Re:`COPY –chmod` reduced the size of my container image by 35%
by jwdunne on Saturday March 26, 2022 @03:22AM
(#30809966)
Can echo this. A colleague’s node container was maxing out CPU and just removing PM2 and running node directly solved the problem. That was easier than debugging why PM2 was having such a hard time.
To be fair, it was a straight up conversion of an old VM in vagrant and Docker was looked at as a one to one replacement before learning otherwise.
Re:`COPY –chmod` reduced the size of my container image by 35%
by TameAntelope on Saturday March 26, 2022 @04:28PM
(#30815082)
It gives you a bunch of stuff you don’t get running the script directly, and costs nothing, so why wouldn’t I opt for that?
They even have an explicit, “run in container” mode.