Currently every command creates a layer. @legendecas suggested in https://github.com/nodejs/devcontainer/pull/12#discussion_r2375074158 to split it into stages. See https://docs.docker.com/build/building/multi-stage/