From 16bbeec5a315587134b2647cd6645ed68df004f8 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 17 Sep 2026 10:17:34 -0400 Subject: [PATCH] fix: fresh npm cache mount id to evict stale foliate-js tarball --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 272cde6..1b7c8d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,10 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \ # Copy package files and install npm dependencies (cached unless package.json changes) COPY package*.json ./ -RUN --mount=type=cache,target=/root/.npm \ +# npm cache mount renamed from /root/.npm: the old volume held a stale +# foliate-js tarball (name@version reuse) that --no-cache and builder prune +# could not evict; a new mount id guarantees a clean fetch. +RUN --mount=type=cache,target=/root/.npm-cache2 \ npm install # Copy Go mod files (cached unless go.mod changes)