Skip to main content
Glama

Reddit Buddy MCP

by karanb192
Dockerfile•1.42 kB
# Build stage FROM node:20-alpine AS builder WORKDIR /app # Copy package files COPY package*.json ./ # Install all dependencies (including dev deps for building) RUN npm ci # Copy source code COPY . . # Build the TypeScript code RUN npm run build # Runtime stage - Using slim instead of alpine for better SSL support FROM node:20-slim # Install dumb-init for proper signal handling and update certificates RUN apt-get update && apt-get install -y --no-install-recommends \ dumb-init \ curl \ ca-certificates \ && update-ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy package files and install production dependencies COPY package*.json ./ 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/README.md ./ COPY --from=builder /app/LICENSE ./ # Create non-root user RUN useradd -m -d /app -s /bin/bash appuser && \ chown -R appuser:appuser /app USER appuser # Health check endpoint HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:3000/health || exit 1 # Expose port EXPOSE 3000 # Set environment variables ENV REDDIT_BUDDY_HTTP=true ENV NODE_ENV=production # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] # Start the application CMD ["node", "dist/cli.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/karanb192/reddit-buddy-mcp'

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