A Dockerfile that switched to a non-root user, then switched back for one directory permission and never switched forward again. The line that switched to root was correct…
A fresh runner has an empty build cache, so every pipeline run rebuilds every layer unless the cache is exported somewhere the next run can reach. mode=max exports…
A named stage installing dev dependencies and running the suite guarantees the test environment is the runtime environment plus tools, rather than a second description that drifts. Stages…