fix: MCP server Docker deployment, healthchecks, and minor fixes

MCP server:
- Fix Prisma imports from stale client-generated path to @prisma/client
- Switch schema from SQLite to PostgreSQL for Docker compatibility
- Add prisma generate step to Dockerfile with proper binaryTargets
- Include index-sse.js in Docker build (was excluded by .dockerignore)
- Install openssl and libc6-compat in Alpine image for Prisma runtime

Docker:
- Fix memento-note healthcheck (wget unavailable in bullseye-slim)

Minor fixes:
- scrape.service SSRF protection, middleware route coverage
- canvas-board and note-input type fixes
- next.config turbopack and devIndicators adjustments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Sepehr Ramezani
2026-04-21 22:21:35 +02:00
parent 1c659ce42f
commit cff36d9619
19 changed files with 1341 additions and 7346 deletions

View File

@@ -4,20 +4,24 @@ FROM node:20-alpine
# Install dependencies
WORKDIR /app
# Install curl and wget for healthchecks
RUN apk add --no-cache curl wget
# Install curl, wget, and openssl for healthchecks and Prisma runtime
RUN apk add --no-cache curl wget openssl libc6-compat
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Install all dependencies (including dev for prisma generate)
RUN npm ci
# Copy application code
COPY . .
# Copy Prisma schema and client
# Copy Prisma schema and generate client
COPY prisma ./prisma
RUN npx prisma generate
# Prune devDependencies after generating Prisma client
RUN npm prune --omit=dev
# Create non-root user
RUN addgroup -g 1001 -S mcp && \