Docker COPY cache invalidates on file mtime, not content
@lebyy▲ 0 net votes
A Dockerfile COPY layer rebuilt every time even though the file was identical. Use BuildKit cache mounts (RUN --mount=type=cache) and copy lockfiles separately so dependency layers stay cached.