managarten/services/matrix-questions-bot/Dockerfile
Till-JS c5476447ec feat(matrix-questions-bot): add Matrix bot for Q&A research management
- Full NestJS bot with matrix-bot-sdk integration
- Question management: create, list, view, delete, archive
- Research: start quick/standard/deep research via mana-search
- Results: view summaries, key points, follow-up questions
- Sources: view ranked sources with relevance scores
- Answers: view, rate (1-5), accept as solution
- Collections: list and create for organization
- Search: full-text search across questions
- Status tracking: open, researching, answered, archived
- Priority levels: low, normal, high, urgent
- German/English command aliases
- Number-based reference system
- JWT auth via mana-core-auth
- Runs on port 3324

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 16:48:56 +01:00

41 lines
755 B
Docker

# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM node:20-alpine
WORKDIR /app
# Copy package files and install production dependencies only
COPY package.json ./
RUN npm install --omit=dev
# Copy built application from builder
COPY --from=builder /app/dist ./dist
# Create data directory
RUN mkdir -p /app/data
# Expose port
EXPOSE 3324
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3324/health || exit 1
# Start the application
CMD ["node", "dist/main.js"]