Skip to main content
Glama

Lambda Performance MCP Server

by jghidalgo
Dockerfile1.52 kB
# Multi-stage build for optimized production image FROM node:18-alpine AS builder # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies (including dev dependencies for build) RUN npm ci --only=production && npm cache clean --force # Copy source code COPY . . # Create non-root user for security RUN addgroup -g 1001 -S nodejs && \ adduser -S mcp -u 1001 # Production stage FROM node:18-alpine AS production # Install dumb-init for proper signal handling RUN apk add --no-cache dumb-init # Set working directory WORKDIR /app # Copy non-root user from builder stage COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /etc/group /etc/group # Copy application files COPY --from=builder --chown=mcp:nodejs /app/node_modules ./node_modules COPY --from=builder --chown=mcp:nodejs /app/package*.json ./ COPY --from=builder --chown=mcp:nodejs /app/index.js ./ COPY --from=builder --chown=mcp:nodejs /app/src ./src # Set environment variables ENV NODE_ENV=production ENV LOG_LEVEL=info ENV MCP_SERVER_NAME=lambda-performance-analyzer # Expose health check port (optional) EXPOSE 3001 # Add health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "console.log('Health check passed')" || exit 1 # Switch to non-root user USER mcp # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] # Start the MCP server CMD ["node", "index.js"]

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/jghidalgo/lambda-performance-mcp-nodejs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server