Skip to main content
Glama
Dockerfile780 B
# Build stage FROM node:20-slim AS builder WORKDIR /app COPY package*.json ./ RUN npm ci COPY tsconfig.json ./ COPY src/ ./src/ RUN npm run build # Production stage FROM node:20-slim WORKDIR /app # Copy package files and install production dependencies only COPY package*.json ./ RUN npm ci --only=production && npm cache clean --force # Copy built files and data COPY --from=builder /app/dist/ ./dist/ COPY data/ ./data/ COPY sources.jsonl ./ COPY project.json ./ ENV NODE_ENV=production ENV PORT=8080 EXPOSE 8080 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "fetch('http://localhost:8080/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))" CMD ["node", "dist/index.js"]

Latest Blog Posts

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/Mnehmos/mnehmos.index-foundry.mcp'

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