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>
18 lines
509 B
Docker
18 lines
509 B
Docker
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --prefer-offline --no-audit --no-fund
|
|
COPY . .
|
|
RUN npm run landing:build
|
|
|
|
FROM node:22-alpine AS runner
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/dist/apps/landing/.next/standalone .
|
|
COPY --from=builder /app/dist/apps/landing/public apps/landing/public
|
|
COPY --from=builder /app/dist/apps/landing/.next/static dist/apps/landing/.next/static
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["node", "apps/landing/server.js"] |