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>
16 lines
444 B
Docker
16 lines
444 B
Docker
FROM node:22-alpine AS deps
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --prefer-offline --no-audit --no-fund
|
|
|
|
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
RUN npm run gacha:build
|
|
|
|
FROM nginx:alpine AS runner
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=builder /app/dist/apps/gacha /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |