Skip to main content
Glama
Dockerfile1.59 kB
# ============================================ # Tableau MCP Server - Docker Configuration # Phase 6: Optimized Multi-Stage Build # ============================================ # ============================================ # Stage 1: Builder # ============================================ FROM node:18-alpine AS builder WORKDIR /app # Copy package files for dependency installation COPY package*.json ./ COPY tsconfig.json ./ # Install ALL dependencies (including devDependencies for build) RUN npm ci # Copy source code COPY src ./src # Build TypeScript to JavaScript RUN npm run build # ============================================ # Stage 2: Production Runtime # ============================================ FROM node:18-alpine AS runtime # Add security: create non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 WORKDIR /app # Copy package files COPY package*.json ./ # Install ONLY production dependencies (smaller image) RUN npm ci --only=production && \ npm cache clean --force # Copy built application from builder stage COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist # Switch to non-root user USER nodejs # Expose port for Cloud Run EXPOSE 8080 # Set environment variables ENV NODE_ENV=production ENV PORT=8080 # Health check for container orchestration HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ CMD node -e "require('http').get('http://localhost:8080/health', (r) => {if(r.statusCode !== 200) throw new Error('Health check failed');})" # Start the server 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/russelenriquez-agile/tableau-mcp-project'

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