| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update \ | |
| && apt-get install -y git curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set workdir | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy MCP server code | |
| COPY . /app/ | |
| # Make run_server.py executable | |
| RUN chmod +x /app/run_server.py | |
| # Expose port for MCP server | |
| EXPOSE 8081 | |
| # Start the MCP server | |
| CMD ["python", "run_server.py", "--host", "0.0.0.0", "--port", "8081"] | |