Especially when working with public cloud and running your Docker images on their serverless environments it becomes more and more important that your Docker image size is as small as possible to reduce bootup time, cold start time, costs, and improve overall performance.

But oftentimes I see people still use the “full” image of their corresponding environment. So I want to show in this article how a one-liner in your Dockerfile can reduce the Docker image size of your application by around 90% without breaking your application.

#nodejs #optimization #programming #docker

Decreasing your Node.js Docker image size by 90%!
2.45 GEEK