From eba2e0cbf4eee674572a4f5477518e5e01b2a3e7 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Thu, 7 May 2026 19:16:28 +0200 Subject: [PATCH 1/2] fix(docker): install python3 + build toolchain for node-gyp 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. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 167ef57ac..38ecf7a35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,10 @@ FROM node:18.19.1-alpine3.19 AS builder +# node-gyp needs Python + a C/C++ toolchain to build native modules +# (e.g. solana/eth signing crates). Alpine ships none of those by default. +RUN apk add --no-cache python3 make g++ + USER node WORKDIR /home/node From 24a5490db301d497b97afbc637890b6605b13db8 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Thu, 7 May 2026 19:18:49 +0200 Subject: [PATCH 2/2] fix(docker,lnbitsapi): same python3 + toolchain fix as lds-api 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. --- infrastructure/lnbitsapi/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure/lnbitsapi/Dockerfile b/infrastructure/lnbitsapi/Dockerfile index 2c9e8b843..efcf97231 100644 --- a/infrastructure/lnbitsapi/Dockerfile +++ b/infrastructure/lnbitsapi/Dockerfile @@ -1,6 +1,10 @@ # Stage 0 FROM node:18.19.1-alpine3.19 AS builder +# node-gyp needs Python + a C/C++ toolchain to build sqlite3's native binding. +# Alpine ships none of those by default. +RUN apk add --no-cache python3 make g++ + USER node WORKDIR /home/node