Skip to main content
Glama
Dockerfileβ€’1.15 kB
# Build stage FROM node:18-alpine AS builder # Install build dependencies RUN apk add --no-cache python3 make g++ WORKDIR /app # Copy package files COPY package*.json ./ # Install all dependencies (including dev) RUN npm ci # Copy source code COPY . . # Build the TypeScript project RUN npm run build # Production stage FROM node:18-alpine WORKDIR /app # Copy package files COPY package*.json ./ # Install only production dependencies RUN npm ci --only=production && npm cache clean --force # Copy built application from builder stage COPY --from=builder /app/dist ./dist COPY --from=builder /app/.env.example ./.env.example # Copy other necessary files COPY smithery.yaml ./ COPY README.md ./ COPY LICENSE ./ # Create non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 USER nodejs # Expose HTTP server port EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node -e "require('http').get('http://localhost:3000/health', (r) => r.statusCode === 200 ? process.exit(0) : process.exit(1))" # Start the HTTP server CMD ["node", "dist/http-server.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/jezweb/twenty-mcp'

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