3 ms·
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 a
by raphi 3y ago
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?
- h1fra 3y agounfortunately 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