WORKDIR leaves it root-owned on non-BuildKit builders and COPY --chown doesn't cover the pre-existing directory, so npm ci as node fails with EACCES. CI never sees it because buildx chowns WORKDIR to USER.