From 2665cd7f252a4b8bb454b5a3b87ae47225d846fd Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 28 Jun 2026 13:48:56 +0200 Subject: [PATCH] Build on node:22-slim (glibc) to fix musl native-dep failure npm ci failed on node:22-alpine (musl): Astro 7's rolldown/oxc native bindings pull @emnapi/core etc. that aren't resolved for musl. Build on Debian glibc to match the lockfile's linux-x64-gnu deps. Co-Authored-By: Claude Opus 4.8 (1M context) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cf9a36d..4ce0b04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ # --- Build stage: produce static dist/ --- -FROM node:22-alpine AS build +# Debian (glibc), not alpine: Astro 7's Rust toolchain (rolldown/oxc) has +# flaky musl native bindings, and the lockfile is resolved for linux-x64-gnu. +FROM node:22-slim AS build WORKDIR /app # Install deps against the lockfile for reproducible builds.