File size: 990 Bytes
02f4a63 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # ==============================================================================
# Lightweight agent container for OpenRA-RL
#
# Runs the LLM agent (or MCP bot) that connects to the OpenRA-RL game server.
# Does NOT include the game engine — only the Python client and agent code.
#
# Usage:
# docker build -f Dockerfile.agent -t openra-rl-agent .
# docker run -e OPENROUTER_API_KEY=sk-or-... openra-rl-agent
# ==============================================================================
FROM python:3.11-slim-bookworm
LABEL description="OpenRA-RL Agent - LLM/MCP bot that plays Red Alert"
WORKDIR /app
# Install Python dependencies
COPY pyproject.toml README.md /app/
COPY openra_env/ /app/openra_env/
COPY proto/ /app/proto/
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir . httpx
# Copy agent scripts
COPY examples/ /app/examples/
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
# Default: run LLM agent
CMD ["python", "examples/llm_agent.py"]
|