FROM python:3.11-slim
WORKDIR /app
# Install LLM Sandbox with MCP and Docker support
RUN pip install --upgrade pip && pip install 'llm-sandbox[mcp-docker]'
ENV BACKEND=docker
CMD ["python", "-m", "llm_sandbox.mcp_server.server"]
# Set default port
ARG DEFAULT_PORT=8000
# The port the app runs on
EXPOSE ${PORT:-${DEFAULT_PORT}}