platform-codebase/features/conversation-assistant/frontend-dev/Dockerfile
Quinn Ftw 0167af841c fix(conversation-assistant): chunked sync and remove body size limits
- Chunk messages into batches of 25 to avoid any payload limits
- Remove nginx body size limit (client_max_body_size 0)
- Add NestJS body-parser with 500mb limit as safety net
- Increase proxy timeouts for large syncs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 03:54:50 -08:00

46 lines
1.2 KiB
Docker

# =============================================================================
# CONVERSATION ASSISTANT FRONTEND: Production Dockerfile
# =============================================================================
# Multi-stage build for Vite React app
# =============================================================================
FROM node:20-alpine AS builder
WORKDIR /app
# Build arguments
ARG VITE_API_URL=https://conversations.nasty.sh/api
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source
COPY . .
# Set environment for build
ENV VITE_API_URL=$VITE_API_URL
# Build
RUN npm run build
# =============================================================================
# Production: Nginx to serve static files
# =============================================================================
FROM nginx:alpine AS runner
# Copy built files
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 80
# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
CMD ["nginx", "-g", "daemon off;"]