Skip to content

chore: keep compilers out of the production image - #29

Merged
isthatpratham merged 1 commit into
mainfrom
chore/docker-runtime-without-compilers
Aug 30, 2026
Merged

chore: keep compilers out of the production image#29
isthatpratham merged 1 commit into
mainfrom
chore/docker-runtime-without-compilers

Conversation

@isthatpratham

Copy link
Copy Markdown
Owner

Summary

  • Add a prod-deps stage that compiles native modules on node:20-bookworm-slim
  • Runtime image only installs gosu and copies the compiled node_modules
  • better-sqlite3 still builds on the same OS/glibc as the runner

Testing

  • npm test -- src/__tests__/health.test.ts passed
  • Dockerfile runner stage no longer mentions python3/make/g++

Build better-sqlite3 in a matching bookworm-slim stage and copy node_modules into the runner so production no longer ships python3, make, or g++.
@isthatpratham
isthatpratham merged commit d87ef4c into main Aug 30, 2026
1 check passed
@isthatpratham
isthatpratham deleted the chore/docker-runtime-without-compilers branch August 30, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant