build: use Debian-based Node image to avoid musl native dependency issues

This commit is contained in:
Andres Santana
2026-10-01 12:38:28 -04:00
parent 030734d521
commit bd00e5ddaf
+3 -1
View File
@@ -1,5 +1,7 @@
# ---- Build stage ---- # ---- Build stage ----
FROM node:22-alpine AS build # Use Debian-based Node to avoid musl/native optional dependency issues
# (rollup optional native binaries may be missing for musl/alpine)
FROM node:22-bullseye-slim AS build
WORKDIR /app WORKDIR /app
# Install dependencies first so Docker can cache this layer # Install dependencies first so Docker can cache this layer