FROM node:22-alpine AS builder
WORKDIR /app
# Update npm to the latest version to fix CVE-2024-21626 (brace-expansion vulnerability)
RUN npm install -g npm@latest
COPY package.json package-lock.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
# Production stage
FROM node:22-alpine
WORKDIR /app
# Update npm to the latest version in production stage as well
RUN npm install -g npm@latest
# Explicitly copy package.json and package-lock.json to the root of /app
COPY package.json package-lock.json ./
# Copy the compiled application files
COPY --from=builder /app/dist ./dist
# Copy the node_modules from the builder
COPY --from=builder /app/node_modules ./node_modules/
ENV NODE_ENV=production
EXPOSE 8080
ENTRYPOINT ["node", "dist/index.js"]
CMD ["--transport", "http"]
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/confluentinc/mcp-confluent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server