Skip to main content
Glama
Dockerfile987 B
# Multi-stage build for production FROM node:20-slim AS builder WORKDIR /app # Copy package files COPY package*.json ./ COPY tsconfig.json ./ # Install dependencies RUN npm ci # Copy source COPY src ./src # Build TypeScript RUN npm run build # Production image FROM node:20-slim WORKDIR /app # Copy package files COPY package*.json ./ # Install production dependencies only RUN npm ci --production # Copy built files from builder COPY --from=builder /app/dist ./dist # Copy icon files (multiple sizes for different use cases) COPY icon.png ./ COPY icon-64.png ./ COPY favicon-32.png ./ # Set environment ENV NODE_ENV=production ENV PORT=8080 ENV BUILD_TIMESTAMP=20251205-progress-fix-v4.3.29 # Expose port EXPOSE 8080 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node -e "require('http').get('http://localhost:8080/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" # Start server CMD ["node", "dist/server.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/AiDD-app/mcp-server'

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