Skip to main content
Glama
Dockerfile2.3 kB
# SmartSuite MCP Server - Production Dockerfile # Multi-stage build for optimal image size and security # ============================================================================ # Stage 1: Build Stage # ============================================================================ FROM node:20-alpine AS builder # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ COPY tsconfig*.json ./ # Install dependencies (including dev dependencies for build) RUN npm ci # Copy source code COPY src/ ./src/ COPY config/ ./config/ # Run quality gates RUN npm run lint && npm run typecheck # Build TypeScript RUN npm run build # ============================================================================ # Stage 2: Production Stage # ============================================================================ FROM node:20-alpine AS production # Install dumb-init for proper signal handling RUN apk add --no-cache dumb-init # Create app user for security RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install production dependencies only RUN npm ci --production && \ npm cache clean --force # Copy built application from builder COPY --from=builder /app/build ./build # Copy configuration (knowledge base, etc.) COPY --from=builder /app/config ./config # Copy necessary files COPY LICENSE ./ COPY README.md ./ # Set ownership to app user RUN chown -R nodejs:nodejs /app # Switch to non-root user USER nodejs # Expose port (if MCP server needs network access) # EXPOSE 3000 # Health check (optional - adjust for your needs) HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "process.exit(0)" || exit 1 # Environment variables ENV NODE_ENV=production \ LOG_LEVEL=info # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] # Start the server CMD ["node", "build/src/index.js"] # ============================================================================ # Metadata # ============================================================================ LABEL maintainer="EAV Creative Solutions" LABEL description="SmartSuite MCP Server - MCP protocol server for SmartSuite API" LABEL version="1.0.0"

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/elevanaltd/smartsuite-mcp'

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