Thumbnail made by Lucas Introduction One of the main challenges of updating multiple Node.js projects, sometimes upgrading from version 14 to 22, was adapting Dockerfiles to ensure optimal compatibility while minimizing image size. This optimization was essential for improving security, reducing vulnerabilities, and speeding up build and deployment times. This article aims to improve this process by adapting the Dockerfiles to reduce the image size, and enhance build and deployment efficiency.