We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CashLabs-Dev/bch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.31 kB
# Build stage
FROM node:20-slim AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies
RUN npm ci
# Copy source
COPY src ./src
COPY tsconfig.json ./
# Build the server with ESM format (external packages handled via node_modules)
RUN npx esbuild src/server.ts --bundle --platform=node --format=esm --outfile=dist/index.js --packages=external
# Production stage
FROM node:20-slim AS production
# Install dumb-init for proper signal handling
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init curl && \
rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN groupadd --gid 1001 nodejs && \
useradd --uid 1001 --gid nodejs --shell /bin/bash --create-home nodejs
WORKDIR /app
# Copy only the built files
COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
# Install only production dependencies
RUN npm ci --omit=dev && npm cache clean --force
# Switch to non-root user
USER nodejs
# Expose the port
EXPOSE 8081
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8081/health || exit 1
# Use dumb-init for proper signal handling
ENTRYPOINT ["dumb-init", "--"]
CMD ["node", "dist/index.js"]