solved this by just removing the intermediate build steps in different containers and just building straight in the final one - this way the files don’t have to be copied into the container.