- Complete Fastify gateway with 8-stage pipeline - Circuit breaker (opossum) per model tier - Rate limiting per caller - Ban list validation (EN/DE/auto-detected) - TIP validator (SFF-8024, part numbers, wavelengths) - Prometheus metrics - pg-boss async queue - PostgreSQL audit log + review queue - 9 prompt templates (TIP, LinkedIn, ShieldX) - Learning engine scaffolding - Auto-learning: ban-list, few-shot, routing, prompt optimizer
19 lines
452 B
Docker
19 lines
452 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install tsx for running TypeScript directly
|
|
RUN npm install -g tsx
|
|
|
|
# Copy workspace root and learning package manifests
|
|
COPY package.json ./
|
|
COPY packages/learning/package.json ./packages/learning/
|
|
|
|
# Install dependencies
|
|
RUN npm install --workspace=packages/learning
|
|
|
|
# Copy learning source
|
|
COPY packages/learning/src ./packages/learning/src
|
|
|
|
CMD ["node", "--import", "tsx/esm", "packages/learning/src/index.ts"]
|