Skip to content

build(docker): remove --build-from-source, add npm cache mount#134

Merged
steilerDev merged 1 commit into
betafrom
build/docker-remove-build-from-source
Feb 19, 2026
Merged

build(docker): remove --build-from-source, add npm cache mount#134
steilerDev merged 1 commit into
betafrom
build/docker-remove-build-from-source

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Remove unnecessary --build-from-source flag from npm cibetter-sqlite3 auto-detects musl libc via prebuild-install and falls back to node-gyp rebuild when no matching prebuild exists
  • Add BuildKit cache mount (--mount=type=cache,target=/root/.npm) so subsequent builds skip re-downloading npm packages

Test plan

  • CI Docker build job passes
  • docker build -t cornerstone . succeeds locally
  • docker run --rm cornerstone node -e "require('better-sqlite3')" loads the native addon

🤖 Generated with Claude Code

Drop the unnecessary --build-from-source flag from npm ci — better-sqlite3
already auto-detects musl libc via prebuild-install and falls back to
node-gyp rebuild when no matching prebuild exists.

Add a BuildKit cache mount for /root/.npm so subsequent builds skip
re-downloading npm packages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit bfeace9 into beta Feb 19, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0-beta.25 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@steilerDev steilerDev deleted the build/docker-remove-build-from-source branch February 19, 2026 20:38
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants