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 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