server: remote HTTP MCP endpoint (Streamable HTTP /mcp) + Node Dockerfile; landing served at /

This commit is contained in:
2026-09-02 00:58:31 +00:00
parent 93addb0320
commit 003f559059
10 changed files with 1082 additions and 607 deletions
+20 -3
View File
@@ -1,4 +1,21 @@
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/index.html
FROM node:20-alpine
WORKDIR /app
# Install deps (incl. dev deps for the TypeScript build)
COPY package*.json tsconfig.json ./
RUN npm install --no-audit --no-fund
# Source + the marketing landing page (served at /)
COPY src ./src
COPY README.md index.html ./
RUN npm run build
ENV NODE_ENV=production
# Listen on 80 so it matches the existing app/proxy port (no label change needed)
ENV PORT=80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Remote HTTP MCP endpoint: GET / = landing, POST /mcp = MCP.
# The npm/npx build stays STDIO (dist/index.js, unchanged).
CMD ["node", "dist/http.js"]