Skip to content

fix(docker): install python3 + build toolchain for node-gyp#179

Merged
TaprootFreak merged 2 commits intodevelopfrom
fix/dockerfile-python
May 7, 2026
Merged

fix(docker): install python3 + build toolchain for node-gyp#179
TaprootFreak merged 2 commits intodevelopfrom
fix/dockerfile-python

Conversation

@TaprootFreak
Copy link
Copy Markdown
Contributor

Build fix for the lds-api image — the Docker build (introduced in #177) fails on npm ci with:

npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
ERROR: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

Several deps (solana / eth signing crates) have native modules that node-gyp builds at install time. node:18-alpine ships without Python or a C/C++ toolchain, so install python3 + make + g++ before the npm step.

After this lands the LDS API DEV CI/CD pipeline should reach the Docker Hub push.

The CI build of lds-api fails on 'npm ci' with:
  npm ERR! gyp ERR! stack Error: Could not find any Python installation to use

Several deps (solana, eth-signing-related crates) have native modules
that node-gyp builds at install time. node:18-alpine ships without
Python or a C/C++ toolchain, so install python3 + make + g++ before
the npm step.
The lnbitsapi image uses the same node:18-alpine base as the new lds-api
image, and depends on sqlite3 which has a native binding compiled by
node-gyp. Add the same python3 + make + g++ install step proactively so
the next push under infrastructure/lnbitsapi/** doesn't hit the same
build failure.
@TaprootFreak TaprootFreak marked this pull request as ready for review May 7, 2026 17:28
@TaprootFreak TaprootFreak merged commit 2fd4e5e into develop May 7, 2026
2 checks passed
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