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