chore(docker): use node:22-bullseye-slim and npm ci --no-optional to avoid native optional deps

This commit is contained in:
Andres Santana
2026-09-25 09:45:25 -04:00
parent 324464e9de
commit a808fdee9e
+3 -2
View File
@@ -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