Skip to content

Commit f9874ac

Browse files
fix: switch Docker base image from alpine to slim for duckdb glibc support
node:20-alpine uses musl libc which is missing ld-linux-x86-64.so.2 required by duckdb's prebuilt native binary. node:20-slim (Debian) provides glibc and resolves the ERR_DLOPEN_FAILED crash on startup. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 43cafe2 commit f9874ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Multi-stage build for Radar
22

33
# Stage 1: Build everything (using monorepo structure)
4-
FROM node:20-alpine AS builder
4+
FROM node:20-slim AS builder
55

66
WORKDIR /app
77

88
# Install build dependencies for native modules (like DuckDB)
9-
RUN apk add --no-cache python3 make g++
9+
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
1010

1111
# Copy root package files and workspace configs
1212
COPY package*.json ./
@@ -27,7 +27,7 @@ RUN npm run build:client
2727
RUN npm run build:server
2828

2929
# Stage 2: Production image
30-
FROM node:20-alpine
30+
FROM node:20-slim
3131

3232
WORKDIR /app
3333

0 commit comments

Comments
 (0)