News for hackers. Stuff that matters.
Re:Building efficient Node.js Docker image by raphi on Tuesday August 08, 2023 @01:10PM (#37052301)
I thought it was once again an article on how to build NodeJS docker image... there are already thousands of them, BUT this one seems complete, great job! I'm always restarting from scratch because it's missing some tricks, some are too simple (HelloWorld kinda Dockerfile which is far from real world production) but your final image is neat. Maybe it's missing some example with ARG which is usually painful.

I'm curious though, why do you need to install `devDependencies` and other crap?

Re:Building efficient Node.js Docker image by h1fra on Tuesday August 08, 2023 @04:34PM (#37055103)
unfortunately it's mandatory to install devdeps to build the source code (typescript, webpack, esbuild, etc.) I just wish there was a buildDeps to avoid this confusion