Skip to content

fix: missing python build utilities#81

Merged
scolastico merged 1 commit intomainfrom
fix/missing-build-dependencies
Feb 5, 2026
Merged

fix: missing python build utilities#81
scolastico merged 1 commit intomainfrom
fix/missing-build-dependencies

Conversation

@scolastico
Copy link
Member

Description

This PR fixes a bug in the Docker build process where the sqlite3 package failed to compile on Alpine Linux. The build failed due to missing native build tools (python3, make, g++) and the absence of the distutils module in Python 3.12 (standard in recent Alpine images).

The fix involves:

  • Adding python3, make, and g++ to the build-stage to support native module compilation.
  • Adding py3-setuptools to provide the distutils module, which is required by older versions of node-gyp used by sqlite3.

Related Issue

n/a

Checklist

  • I have tested my changes locally
  • I have updated the documentation if needed
  • This PR follows the project's coding style

Additional Notes

The build now completes successfully on node:25-alpine based images. The pnpm prune --prod step, which previously failed, now correctly rebuilds native dependencies with the provided build tools.

@github-actions github-actions bot added the docker Pull requests that update Docker code label Feb 5, 2026
@scolastico scolastico merged commit fa93b55 into main Feb 5, 2026
2 checks passed
@scolastico scolastico deleted the fix/missing-build-dependencies branch February 5, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Pull requests that update Docker code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant