fix(docker): skip canvas native build (optional jsdom dep)

canvas is an optional dependency of jsdom used for testing. It fails to
compile on Alpine/musl due to missing <cstdint> 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 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-12-31 12:28:01 -06:00
parent 5f51bc1871
commit d717f44fcc
1 changed files with 3 additions and 0 deletions

3
.npmrc Normal file
View File

@ -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