Skip to main content
Glama

Weather MCP Service

by Philip-Walsh
Dockerfile1.25 kB
# Multi-stage build FROM node:18-alpine AS builder WORKDIR /app # Copy package files COPY package*.json ./ COPY tsconfig.json ./ # Install ALL dependencies (including dev for building) RUN npm ci # Copy source code COPY server/ server/ # Build TypeScript RUN npm run build # Clean up dev dependencies after build RUN npm prune --production # Production stage FROM node:18-alpine AS production WORKDIR /app # Install dumb-init for proper signal handling RUN apk add --no-cache dumb-init # Create non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 # Copy package files COPY package*.json ./ # Copy built application and cleaned dependencies from builder COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules # Create data directory for SQLite RUN mkdir -p /app/data && chown -R nodejs:nodejs /app # Switch to non-root user USER nodejs # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "require('http').get('http://localhost:3000/api/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" || exit 1 # Expose port EXPOSE 3000 # Start application ENTRYPOINT ["dumb-init", "--"] 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/Philip-Walsh/weathernode'

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