perf: optimize Docker builds with npm ci
Replace npm install with npm ci and optimization flags to fix deployment timeouts: - Use npm ci for faster, more reliable installs - Add --prefer-offline to use cached packages - Add --no-audit and --no-fund to skip unnecessary checks - Optimize landing.Dockerfile to copy package files before installing This resolves the Docker build EOF errors during deployment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
69d6d86342
commit
529d065a75
@@ -1,7 +1,7 @@
|
||||
FROM node:22-alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
RUN npm ci --prefer-offline --no-audit --no-fund
|
||||
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user