Dockerfile•620 B
# Use official Python slim image
FROM python:3.12-slim
# Set workdir
WORKDIR /app
# Avoid buffering
ENV PYTHONUNBUFFERED=1
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Copy codes
COPY . .
# Install the package in development mode
RUN pip install --no-cache-dir --upgrade .
# Generate schemas from function signatures to ensure consistency
RUN python scripts/generate_registry.py
# Expose port for MCP HTTP server
EXPOSE 8080
# Default command: run MCP HTTP server
CMD ["python", "-m", "uvicorn", "mcp_server.mcp_http_server:app", "--host", "0.0.0.0", "--port", "8080"]