Use build-base + linux-headers for better-sqlite3 on Alpine
Docker Build and Push / build (push) Failing after 2m31s
Docker Build and Push / build (push) Failing after 2m31s
g++ alone is missing musl-dev and binutils; build-base is Alpine's equivalent of build-essential and covers the full GCC toolchain needed by node-gyp. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
d96d923054
commit
559a47c092
1 file changed
+2
-2
+2
-2
@@ -28,9 +28,9 @@ RUN apk add --no-cache dumb-init
|
||||
COPY package*.json ./
|
||||
|
||||
# Install build tools for native modules (better-sqlite3), then install deps
|
||||
RUN apk add --no-cache python3 make g++ && \
|
||||
RUN apk add --no-cache python3 build-base linux-headers && \
|
||||
npm ci --omit=dev && \
|
||||
apk del python3 make g++
|
||||
apk del python3 build-base linux-headers
|
||||
|
||||
# Copy server code
|
||||
COPY server ./server
|
||||
|
||||
Reference in new issue
Block a user