From a808fdee9eee92d38f9b1387c99f54c605c8f0eb Mon Sep 17 00:00:00 2001 From: Andres Santana Date: Fri, 25 Sep 2026 09:45:25 -0400 Subject: [PATCH] chore(docker): use node:22-bullseye-slim and npm ci --no-optional to avoid native optional deps --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2693b9..0ad85f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ # ---------- Build stage ---------- -FROM node:22-alpine AS build +FROM node:22-bullseye-slim AS build WORKDIR /app # Install dependencies first (better layer caching) COPY package.json package-lock.json ./ COPY apps/web/package.json apps/web/package.json -RUN npm ci +# Avoid optional native optional deps that fail on some builder environments +RUN npm ci --no-optional # Copy source and build the static site COPY apps/web apps/web