Skip to main content
Glama

Advanced MCP Server

by Nom-nom-hub
Dockerfile1.23 kB
# Use Node.js 18 as the base image FROM node:18-alpine AS builder # Set the working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install all dependencies including dev dependencies for building RUN npm ci # Copy the application code COPY . . # Build the TypeScript code RUN npm run build # Production stage FROM node:18-alpine AS production # Set the working directory WORKDIR /app # Create a non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S nextjs -u 1001 # Copy package files COPY package*.json ./ # Install only production dependencies RUN npm ci --only=production && npm cache clean --force # Copy built JavaScript files from builder stage COPY --from=builder /app/dist ./dist # Create workspace directory RUN mkdir -p /app/workspace # Change ownership of app directory to non-root user RUN chown -R nextjs:nodejs /app # Switch to non-root user USER nextjs # Expose the port the app runs on EXPOSE 8080 # Set environment variables ENV NODE_ENV=production ENV PORT=8080 ENV WORKSPACE_PATH=/app/workspace # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node healthcheck.js # Start the application CMD ["node", "dist/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/Nom-nom-hub/fullstack-mcp'

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