Recommendations

The following should always be done:

Cleaning the node_modules folder should always be done unless you bundle your sources without external dependencies:

Hardening the base image should always be considered, even if it does not significantly lower the image’s size:

Compressing the node binary is also worthwhile (118.1MB ⇒ 41.3MB):

Bundling and minifying your source files is a good idea if the decreased debugging experience is acceptable: