We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/enisze/reddit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.27 kB
# Generated by https://smithery.ai. See:
# https://smithery.ai/docs/config#dockerfile
# Use a Node.js image for building the server
FROM node:18-alpine AS builder
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the entire source code into the working directory
COPY . .
# Build the TypeScript files
RUN npm run build
# Use a smaller Node.js image for the runtime
FROM node:18-slim
# Set the working directory in the runtime image
WORKDIR /app
# Copy the build files from the builder image
COPY --from=builder /app/build ./build
# Copy package.json and package-lock.json for production install
COPY package.json package-lock.json ./
# Install only production dependencies
RUN npm install --omit=dev
# Set environment variables for Reddit API
ENV REDDIT_CLIENT_ID=your_client_id_here
ENV REDDIT_CLIENT_SECRET=your_client_secret_here
ENV REDDIT_USERNAME=your_username_here
ENV REDDIT_PASSWORD=your_password_here
ENV REDDIT_USER_AGENT=reddit-mcp-server/1.0.0
ENV REDDIT_USER_AGENT=reddit-mcp:v1.0.0
# Expose the port the server runs on
EXPOSE 3000
# Start the server
CMD ["node", "build/index.js"]