One weird trick to minimize Docker image size for Node apps
andrewhuth.substack.com
One way to reduce the size of your Docker images for Node apps is to remove dev dependencies from the node_modules folder. You can do this with npm prune npm prune --omit dev This works great in many situations. But sometimes it’s trickier, such as in a monorepo
One weird trick to minimize Docker image size for Node apps
One weird trick to minimize Docker image size…
One weird trick to minimize Docker image size for Node apps
One way to reduce the size of your Docker images for Node apps is to remove dev dependencies from the node_modules folder. You can do this with npm prune npm prune --omit dev This works great in many situations. But sometimes it’s trickier, such as in a monorepo