# Self-contained image: the game files live in ./vendor (run scripts/prepare_superbeam_env.py # from the beam repo first). No torch, CPU only. Build context = this directory. FROM python:3.12-slim WORKDIR /app/env COPY . /app/env RUN pip install --no-cache-dir "openenv>=0.11.0" fastapi "uvicorn[standard]" websockets numpy pydantic ENV PYTHONPATH="/app/env" ENV PYTHONUNBUFFERED=1 ENV ENABLE_WEB_INTERFACE=true ENV SUPERBEAM_LEVEL=classic EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1 CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]