I think the nodejs image should'nt contain yarn, for projects and developers not using yarn, which is very likely the majority related: https://github.com/nodejs/docker-node/issues/243 yarn adds 4436kB to the image