Skip to main content
Glama
Dockerfile838 B
# Builder: compile TypeScript FROM node:20-bullseye AS builder WORKDIR /usr/src/app # Copy package files COPY package.json package-lock.json* ./ # Install all dependencies (including dev deps for build) RUN npm ci --legacy-peer-deps || npm install # Copy source code COPY . . # Build TypeScript to JavaScript RUN npm run build # Runtime stage: production image with compiled code FROM node:20-slim WORKDIR /usr/src/app # Copy package files COPY package.json package-lock.json* ./ # Install only production dependencies RUN npm ci --production --legacy-peer-deps || npm install --production # Copy compiled output from builder COPY --from=builder /usr/src/app/dist ./dist ENV NODE_ENV=production ENV MCP_TRANSPORT=stdio ENV MCP_HTTP_PORT=8080 # Expose the HTTP port EXPOSE 8080 # Start the 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/YelowFlash09/figma_mcp'

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