Download server/Dockerfile from StarAtNyte1/superbeam-env: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/StarAtNyte1/superbeam-env/resolve/main/server/Dockerfile
- Command line
-
hf download hf://StarAtNyte1/superbeam-env/server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/StarAtNyte1/superbeam-env/resolve/main/server/Dockerfile
723 Bytes
| # 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"] | |