feat: initial learning-mcp HTTP server (CF-3094)
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install --omit=dev --no-audit --no-fund
|
||||
|
||||
COPY src ./src
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
MCP_HTTP_HOST=0.0.0.0 \
|
||||
MCP_HTTP_PORT=9221
|
||||
|
||||
EXPOSE 9221
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
||||
CMD wget -qO- http://127.0.0.1:9221/health >/dev/null || exit 1
|
||||
|
||||
CMD ["node", "src/http-server.js"]
|
||||
Reference in New Issue
Block a user