Skip to main content
Glama
Dockerfile835 B
FROM node:18-alpine AS builder # Install dependencies WORKDIR /app COPY package*.json ./ RUN npm ci --only=production # Copy source code COPY . . # Build the application RUN npm run build # Production stage FROM node:18-alpine # Create non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 WORKDIR /app # Copy package files COPY package*.json ./ RUN npm ci --only=production && npm cache clean --force # Copy built application COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist # Switch to non-root user USER nodejs # Expose port (not used in stdio mode but kept for compatibility) EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node dist/index.js --health-check || exit 1 # Run the application ENTRYPOINT ["node", "dist/index.js"]

Latest Blog Posts

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/Thedurancode/Coolify-MCP'

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