# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files and install all dependencies (including dev)
COPY package*.json ./
RUN npm ci
# Copy source files and build
COPY tsconfig.json ./
COPY server.ts ./
RUN npm run build
# Production stage
FROM node:20-alpine
WORKDIR /app
# Copy package files and install production dependencies only
COPY package*.json ./
RUN npm ci --only=production
# Copy built application from builder
COPY --from=builder /app/dist ./dist
# Expose port (Cloud Run uses PORT env variable)
EXPOSE 8080
# Note: Cloud Run automatically sets PORT environment variable to 8080
# No need to set ENV PORT here as it will be overridden
# Start the server directly with node (faster than npm start)
CMD ["node", "dist/server.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/reouno/gemini-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server