From f337c639159db70b13ec4fd1f604526ad72e2130 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 1 Aug 2026 04:40:05 +0000 Subject: [PATCH] fix(Dockerfile.spa): exclude node_modules from COPY to avoid BuildKit cache mount conflict The COPY apps/web step was failing with: cannot copy to non-directory: .../app/apps/web/node_modules/@hookform/resolvers because the host node_modules symlink conflicted with BuildKits overlayfs cache mount. Adding --exclude=node_modules sidesteps the conflict (the node_modules in the image is freshly created by the earlier bun install). Parent: t_e1cbd87d --- Dockerfile.spa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.spa b/Dockerfile.spa index 6ebc931..14d6036 100644 --- a/Dockerfile.spa +++ b/Dockerfile.spa @@ -13,8 +13,8 @@ COPY packages/shared/package.json packages/shared/package.json # Install dependencies (workspace-aware) RUN bun install --frozen-lockfile 2>/dev/null || bun install -# Copy full web app source -COPY apps/web ./apps/web +# Copy full web app source (exclude node_modules to avoid BuildKit cache mount conflict) +COPY --exclude=node_modules apps/web ./apps/web # Build the SPA RUN cd apps/web && bun run build