Skip to main content
Glama
Dockerfile1.31 kB
# Use Python 3.11 slim image for optimal size and performance FROM python:3.11-slim # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONPATH=/app \ PORT=8000 # Set working directory WORKDIR /app # Install system dependencies for scientific computing RUN apt-get update && apt-get install -y \ gcc \ g++ \ gfortran \ libopenblas-dev \ liblapack-dev \ libfftw3-dev \ pkg-config \ curl \ && rm -rf /var/lib/apt/lists/* # Copy dependency files COPY requirements.txt pyproject.toml ./ # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ pip install --no-cache-dir -r requirements.txt # Copy source code and server entry points COPY src/ ./src/ COPY tests/ ./tests/ COPY run_simple_server.py ./ COPY test_startup.py ./ # Create non-root user for security RUN useradd --create-home --shell /bin/bash app && \ chown -R app:app /app USER app # Expose port for HTTP server EXPOSE 8000 # Add health check with longer startup period for debugging HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=5 \ CMD curl -f http://localhost:8000/health || exit 1 # Run the Rabi MCP Server with real quantum physics calculations CMD ["python", "run_simple_server.py"]

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/manasp21/rabi-mcp'

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