diff --git a/Dockerfile b/Dockerfile index 3d13fb1..5072459 100644 --- a/Dockerfile +++ b/Dockerfile @@ -141,7 +141,11 @@ WORKDIR /build # Cache the pnpm workspace node_modules by copying only package manifests first. # Copying all 4 libs' manifests + the workspace root lets pnpm install everything # in one shot; this layer is reused as long as the manifests don't change. +# `pnpm-workspace.yaml` declares a patched dep (@tiptap/markdown) pointing at +# `patches/@tiptap__markdown@3.27.3.patch`, so the patches/ tree must be present +# before `pnpm install --frozen-lockfile` or it fails with ENOENT on the patch. COPY libs/package.json libs/pnpm-workspace.yaml libs/pnpm-lock.yaml libs/ +COPY libs/patches/ libs/patches/ COPY libs/tiptap-editor/package.json libs/tiptap-editor/ COPY libs/codemirror-editor/package.json libs/codemirror-editor/ COPY libs/lightbox/package.json libs/lightbox/