Skip to content

Commit d902555

Browse files
committed
fix: upgrade to node:24-trixie and rebuild sqlite3 from source
The node:24 image defaults to Debian Bookworm (glibc 2.36), but the sqlite3 prebuilt binary requires glibc 2.38. This causes a fatal GLIBC_2.38-not-found crash at startup, putting all CADT pods into CrashLoopBackOff. Two-part fix: - Switch base image from node:24 (Bookworm) to node:24-trixie (Debian 13 stable, glibc 2.41) so prebuilt native binaries are compatible with the container's C library - Add npm rebuild sqlite3 --build-from-source as a safety net so the native addon is always compiled against the container's actual glibc
1 parent a9bbf5a commit d902555

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mikefarah/yq:4 AS yq
22

3-
FROM node:24
3+
FROM node:24-trixie
44

55
# Copy yq from the yq image
66
COPY --from=yq /usr/bin/yq /usr/local/bin/yq
@@ -15,7 +15,7 @@ COPY src /app/src/
1515
COPY tests /app/tests/
1616
WORKDIR /app
1717

18-
RUN npm install
18+
RUN npm install && npm rebuild sqlite3 --build-from-source
1919

2020
RUN mkdir -p /root/.chia/mainnet/config/ssl && mkdir -p /root/.chia/mainnet/cadt/v1
2121

0 commit comments

Comments
 (0)