From d717f44fccb8ed2baa30499df65784a4b89c6ffc Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Wed, 31 Dec 2025 12:28:01 -0600 Subject: [PATCH] fix(docker): skip canvas native build (optional jsdom dep) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit canvas is an optional dependency of jsdom used for testing. It fails to compile on Alpine/musl due to missing includes in canvas 3.x. Since canvas is not required for production or even for tests, configure pnpm to skip its native build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .npmrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..50ea615e --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +# Prevent native addon builds for packages that have prebuilds or are optional +# canvas is an optional dep of jsdom (for testing) - doesn't compile on Alpine/musl +neverBuiltDependencies[]=canvas