We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tohachan/diagram-bridge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.54 kB
# Build stage
FROM node:18-alpine AS builder
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install ALL dependencies (including devDependencies for TypeScript build)
RUN npm ci
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM node:18-alpine AS production
# Install curl for health checks
RUN apk add --no-cache curl
# Create non-root user for security
RUN addgroup -g 1001 -S nodejs && \
adduser -S mcp -u 1001
# Set working directory
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 any additional files needed at runtime
COPY --from=builder /app/LICENSE ./
# Change ownership to non-root user
RUN chown -R mcp:nodejs /app
# Switch to non-root user
USER mcp
# Environment variables with defaults
ENV NODE_ENV=production
ENV PORT=3000
ENV DOCKER_CONTAINER=true
ENV KROKI_URL=http://kroki:8000
ENV KROKI_TIMEOUT=30000
ENV KROKI_MAX_RETRIES=3
ENV KROKI_USE_LOCAL=true
ENV LOG_LEVEL=info
ENV MAX_CODE_LENGTH=5242880
# Expose port (dynamically based on PORT env var, default 3000)
EXPOSE ${PORT:-3000}
# Health check - now uses HTTP endpoint when in container
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${PORT:-3000}/health || exit 1
# Start the application
CMD ["node", "dist/index.js"]