Skip to main content
Glama

docs-mcp-server

Dockerfile1.92 kB
# Build stage FROM node:22-slim AS builder # Accept build argument for PostHog API key ARG POSTHOG_API_KEY ENV POSTHOG_API_KEY=$POSTHOG_API_KEY WORKDIR /app # Install build dependencies for native modules (tree-sitter) RUN apt-get update \ && apt-get install -y --no-install-recommends \ python3 \ make \ g++ \ && rm -rf /var/lib/apt/lists/* # Copy package files COPY package*.json ./ # Install all dependencies (including dev dependencies for building) RUN npm ci # Copy source code COPY . . # Build application RUN npm run build # Install production dependencies in a clean directory RUN rm -rf node_modules && npm ci --omit=dev # Production stage FROM node:22-slim WORKDIR /app # Copy package files and database COPY package*.json . COPY db db # Copy built files and production node_modules from builder COPY --from=builder /app/dist ./dist COPY --from=builder /app/public ./public COPY --from=builder /app/node_modules ./node_modules # Install system Chromium and required dependencies RUN apt-get update \ && apt-get install -y --no-install-recommends chromium \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* \ && CHROMIUM_PATH=$(command -v chromium || command -v chromium-browser) \ && if [ -z "$CHROMIUM_PATH" ]; then echo "Chromium executable not found!" && exit 1; fi \ && if [ "$CHROMIUM_PATH" != "/usr/bin/chromium" ]; then echo "Unexpected Chromium path: $CHROMIUM_PATH" && exit 1; fi \ && echo "Chromium installed at $CHROMIUM_PATH" # Set Playwright to use system Chromium (hardcoded path, as ENV cannot use shell vars) ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium # Set data directory for the container ENV DOCS_MCP_STORE_PATH=/data # Define volumes VOLUME /data # Expose the default port of the application EXPOSE 6280 ENV PORT=6280 ENV HOST=0.0.0.0 # Set the command to run the application ENTRYPOINT ["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/arabold/docs-mcp-server'

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