FROM python:3.10-slim
WORKDIR /app
# Copy requirements first for better layer caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port the app runs on
EXPOSE 8000
# Set environment variables
ENV MCP_TRANSPORT=http
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8000
ENV MCP_AUTH_ENABLED=false
# Command to run the application
CMD ["python", "simple_mcp_server.py"]