Sistema NEXUS v3.4 migrado con: Estructura principal: - core/orchestration: Sistema SIMCO + CAPVED (27 directivas, 28 perfiles) - core/catalog: Catalogo de funcionalidades reutilizables - shared/knowledge-base: Base de conocimiento compartida - devtools/scripts: Herramientas de desarrollo - control-plane/registries: Control de servicios y CI/CD - orchestration/: Configuracion de orquestacion de agentes Proyectos incluidos (11): - gamilit (submodule -> GitHub) - trading-platform (OrbiquanTIA) - erp-suite con 5 verticales: - erp-core, construccion, vidrio-templado - mecanicas-diesel, retail, clinicas - betting-analytics - inmobiliaria-analytics - platform_marketing_content - pos-micro, erp-basico Configuracion: - .gitignore completo para Node.js/Python/Docker - gamilit como submodule (git@github.com:rckrdmrd/gamilit-workspace.git) - Sistema de puertos estandarizado (3005-3199) Generated with NEXUS v3.4 Migration System EPIC-010: Configuracion Git y Repositorios
65 lines
1.8 KiB
Docker
65 lines
1.8 KiB
Docker
# =============================================================================
|
|
# OrbiQuant IA - Frontend Application
|
|
# Multi-stage Dockerfile for production deployment
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Stage 1: Dependencies
|
|
# -----------------------------------------------------------------------------
|
|
FROM node:20-alpine AS deps
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm ci
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Stage 2: Builder
|
|
# -----------------------------------------------------------------------------
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Build arguments for environment variables
|
|
ARG VITE_API_URL=http://localhost:3000
|
|
ARG VITE_WS_URL=ws://localhost:3000
|
|
ARG VITE_LLM_URL=http://localhost:8003
|
|
ARG VITE_ML_URL=http://localhost:8001
|
|
|
|
# Set environment variables for build
|
|
ENV VITE_API_URL=$VITE_API_URL
|
|
ENV VITE_WS_URL=$VITE_WS_URL
|
|
ENV VITE_LLM_URL=$VITE_LLM_URL
|
|
ENV VITE_ML_URL=$VITE_ML_URL
|
|
|
|
# Copy dependencies
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN npm run build
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Stage 3: Production (nginx)
|
|
# -----------------------------------------------------------------------------
|
|
FROM nginx:alpine AS runner
|
|
|
|
# Copy custom nginx config
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Copy built application
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
# Add health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:80/health || exit 1
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
# Start nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|