We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityas7netapp/bing-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.14 KiB
# Lightweight Python 3.11 base image
FROM python:3.11-slim AS builder
# Set working directory
WORKDIR /app
# Install dependencies in a separate layer for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
# Final stage - minimal runtime image
FROM python:3.11-slim
# Create non-root user for security
RUN useradd -m -u 1000 mcpuser
# Set working directory
WORKDIR /app
# Copy Python packages from builder
COPY --from=builder /root/.local /home/mcpuser/.local
# Copy application code
COPY bing-search.py .
# Set ownership
RUN chown -R mcpuser:mcpuser /app
# Switch to non-root user
USER mcpuser
# Update PATH to include user packages
ENV PATH=/home/mcpuser/.local/bin:$PATH
# Set Python to run in unbuffered mode for better logging
ENV PYTHONUNBUFFERED=1
# Default transport mode
ENV TRANSPORT=streamable-http
# Expose HTTP port
EXPOSE 8000
# Health check for HTTP mode
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000').read()" || exit 1
# Run the MCP server
CMD ["python", "bing-search.py"]