Download Dockerfile from syeam-alt/genesis-e2e-test: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/syeam-alt/genesis-e2e-test/resolve/main/Dockerfile
- Command line
-
hf download hf://syeam-alt/genesis-e2e-test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/syeam-alt/genesis-e2e-test/resolve/main/Dockerfile
986 Bytes
| # Dockerfile for Robotics Subnet Miner Policy Server | |
| # | |
| # This creates a FastAPI server that exposes your policy for validator queries. | |
| # | |
| # Build: docker build -t your-username/robo-policy:v1 . | |
| # Test: docker run -p 8000:8000 your-username/robo-policy:v1 | |
| # Push: docker push your-username/robo-policy:v1 | |
| # | |
| # Deploy to Basilica: kinitro miner push --repo user/policy --revision abc123 | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy policy server code | |
| COPY server.py . | |
| COPY policy.py . | |
| # Copy model weights (uncomment and modify as needed) | |
| # COPY model.pt . | |
| # COPY models/ ./models/ | |
| # Expose port for FastAPI | |
| EXPOSE 8000 | |
| # Run the FastAPI server | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"] | |