chore(docker): use node:22-bullseye-slim and npm ci --no-optional to avoid native optional deps
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user