The intermittent failures are happening because of build context and file path mismatches in your monorepo. Docker only sees files inside the defined build context, and your Dockerfiles are trying to COPY
files that sometimes aren’t in the place Docker expects.